Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 3fb0eee

Browse files
T2T Teamcopybara-github
authored andcommitted
Internal change.
PiperOrigin-RevId: 242467951
1 parent ef283ac commit 3fb0eee

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tensor2tensor/layers/common_layers_test.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ def testLayerNorm(self):
214214
res = self.evaluate(y)
215215
self.assertEqual(res.shape, (5, 7, 11))
216216

217-
# Testing layer collection.
218-
layer_collection = kfac.LayerCollection()
219-
common_layers.layer_norm(x, layer_collection=layer_collection)
220-
self.assertLen(layer_collection.get_blocks(), 1)
221217

222218
@test_utils.run_in_graph_and_eager_modes()
223219
def testGroupNorm(self):
@@ -317,13 +313,6 @@ def testApplyNormNone(self):
317313
self.assertEqual(actual.shape, (5, 2, 1, 11))
318314
self.assertAllClose(actual, x1, atol=1e-03)
319315

320-
@test_utils.run_in_graph_mode_only()
321-
def testApplyNormWithLayerCollection(self):
322-
x = np.random.rand(5, 2, 1, 11)
323-
layer_collection = kfac.LayerCollection()
324-
common_layers.apply_norm(x, "layer", depth=11, epsilon=1e-6,
325-
layer_collection=layer_collection)
326-
self.assertLen(layer_collection.get_blocks(), 1)
327316

328317
@test_utils.run_in_graph_mode_only()
329318
def testDenseWithLayerCollection(self):

0 commit comments

Comments
 (0)