def create_patch_viewer(grid_shape, vis_chains, m):
    pv = PatchViewer(grid_shape, vis_chains.shape[1:3],
                     is_color=vis_chains.shape[-1] == 3)

    for i in xrange(m):
        pv.add_patch(vis_chains[i, :], rescale=False)

    return pv
Decorates a function and issues a pending deprecation warning on use.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/scripts/dbm/show_negative_chains.py/create_patch_viewer--crossover with--dataset/ETHPy150Open ralfonso/theory/theory/model/mpdutil.py/pending_deprecation