def test_set_batch_size(self):
        img_shape = self.cudnn2d._img_shape
        self.cudnn2d.set_batch_size(self.batch_size + 10)
        np.testing.assert_equal(self.cudnn2d._img_shape[0],
                                self.batch_size + 10)
        np.testing.assert_equal(self.cudnn2d._img_shape[1:], img_shape[1:])
Restarts instances. May avoid some restarts depending on policy.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/linear/tests/test_cudnn.py/TestCudnn.test_set_batch_size--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/module.py/Module._maybe_restart_instances