We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d9a6e commit ce86b4aCopy full SHA for ce86b4a
morph_net/tools/configurable_ops_test.py
@@ -419,7 +419,9 @@ def testBatchNorm(self):
419
decorator_zero_output = decorator.batch_norm(ops.VANISHED, **kwargs)
420
tf_output = layers.batch_norm(self.inputs, **kwargs)
421
422
- self.assertAllEqual(decorator_regular_output, tf_output)
+ with self.cached_session():
423
+ tf.global_variables_initializer().run()
424
+ self.assertAllEqual(decorator_regular_output, tf_output)
425
self.assertTrue(ops.is_vanished(decorator_zero_output))
426
427
0 commit comments