def viz(self, num_row=1):
        num_filters = self.filters_.shape[-1]
        fig = plt.figure()
        num_col = int(np.ceil(float(num_filters)/num_row))
        
        for i in xrange(num_filters):
            ax = fig.add_subplot(num_row, num_col, i)
            imshow(self.filters_[...,i], ax=ax)
To set the name of the device.
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/ConvLayer.viz--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/junos.py/set_hostname