Skip to content

Commit 98c2f52

Browse files
Explicitly disable MLIR bridge in tests that don't use it.
To avoid a bug with enabling shadow mode for the MLIR bridge at the same time as tfr decomposition, explicitly disable the MLIR bridge on tests that don't use it. PiperOrigin-RevId: 353668371 Change-Id: If91b28e8d14a7a30d7df653736e6584bc84a5276
1 parent 95af382 commit 98c2f52

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎tensorflow/compiler/mlir/tfr/BUILD‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ tf_py_test(
254254
],
255255
deps = [
256256
"//tensorflow/compiler/mlir/tfr/resources:composite_ops",
257+
"//tensorflow/python:is_mlir_bridge_test_false",
257258
"//tensorflow/python/eager:def_function",
258259
],
259260
)

‎tensorflow/compiler/mlir/tfr/examples/customization/BUILD‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ tf_py_test(
3939
deps = [
4040
"//tensorflow:tensorflow_py",
4141
"//tensorflow/compiler/mlir/tfr:test_utils",
42+
"//tensorflow/python:is_mlir_bridge_test_false",
4243
"//tensorflow/python:test_ops",
4344
],
4445
)

‎tensorflow/compiler/mlir/tfr/examples/mnist/BUILD‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ tf_py_test(
4242
":mnist_ops_py",
4343
"//tensorflow:tensorflow_py",
4444
"//tensorflow/compiler/mlir/tfr:test_utils",
45+
"//tensorflow/python:is_mlir_bridge_test_false",
4546
],
4647
)
4748

‎tensorflow/compiler/mlir/tfr/examples/pad/BUILD‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ tf_py_test(
4141
":pad_ops_py",
4242
"//tensorflow:tensorflow_py",
4343
"//tensorflow/compiler/mlir/tfr:test_utils",
44+
"//tensorflow/python:is_mlir_bridge_test_false",
4445
],
4546
)

0 commit comments

Comments
 (0)