def test_exception(self):
    try:
        bn = BatchNorm(num_features=32)
    except Exception as e:
        self.assertIsInstance(e, ValueError)
        print(e)
    try:
        ni = Input([None, 100, 1], name='test_ni1')
        bn = BatchNorm(decay=1.5)(ni)
    except Exception as e:
        self.assertIsInstance(e, ValueError)
        print(e)
def test_exception(self):
    try:
        bn = BatchNorm(num_features=32)
    except Exception as e:
        self.assertIsInstance(e, ValueError)
        print(e)
    try:
        ni = Input([None, 100, 1], name='test_ni1')
        bn = BatchNorm(decay=1.5)(ni)
    except Exception as e:
        self.assertIsInstance(e, ValueError)
        print(e)