Skip to content

Commit

Permalink
Disable MLIR bridge for the test points that MLIR bridge silently fails
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 676573736
  • Loading branch information
tensorflower-gardener committed Sep 19, 2024
1 parent e885683 commit 301c5c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
class GradNormTpuTest(embedding_test.GradNormTest):

def setUp(self):
tf.config.experimental.disable_mlir_bridge()
super(embedding_test.GradNormTest, self).setUp()
self.strategy = common_test_utils.create_tpu_strategy()
self.assertIn('TPU', self.strategy.extended.worker_devices[0])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
class GradNormTpuTest(nlp_on_device_embedding_test.GradNormTest):

def setUp(self):
tf.config.experimental.disable_mlir_bridge()
super(nlp_on_device_embedding_test.GradNormTest, self).setUp()
self.strategy = common_test_utils.create_tpu_strategy()
self.assertIn('TPU', self.strategy.extended.worker_devices[0])
Expand Down

0 comments on commit 301c5c4

Please sign in to comment.