From 0931bdf88f9c42cef5680d55b15353e7c2e67a07 Mon Sep 17 00:00:00 2001 From: Chuanhao Zhuge Date: Mon, 5 Oct 2020 13:17:12 -0700 Subject: [PATCH] Decouple TFRT native ops from c_api_tfrt. Enable three python tests. PiperOrigin-RevId: 335484903 Change-Id: Ie4c07cdaff53ccedd54e216cbf72312a60905487 --- tensorflow/python/BUILD | 3 ++- tensorflow/python/kernel_tests/BUILD | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD index 961c845805b..93c8aa79ced 100644 --- a/tensorflow/python/BUILD +++ b/tensorflow/python/BUILD @@ -2194,7 +2194,7 @@ py_library( ) # Including this as a dependency will result in tests to use TFRT. -# TODO(b/153582383): Move tf_ops_alwayslink dependency to c_api_tfrt instead. +# TODO(b/170139514): Add a curated list of TFRT native ops. py_library( name = "is_tfrt_test_true", srcs = ["framework/is_tfrt_test_true.py"], @@ -5066,6 +5066,7 @@ cuda_py_test( size = "medium", srcs = ["ops/gradient_checker_v2_test.py"], python_version = "PY3", + tfrt_enabled = True, deps = [ ":array_ops", ":client_testlib", diff --git a/tensorflow/python/kernel_tests/BUILD b/tensorflow/python/kernel_tests/BUILD index 4091adf280e..e495656330f 100644 --- a/tensorflow/python/kernel_tests/BUILD +++ b/tensorflow/python/kernel_tests/BUILD @@ -817,6 +817,7 @@ cuda_py_test( name = "matrix_solve_ls_op_test", size = "medium", srcs = ["matrix_solve_ls_op_test.py"], + tfrt_enabled = True, deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", @@ -3608,6 +3609,7 @@ cuda_py_test( "no_oss", # b/117185141. "nomsan", # TODO(b/117236102): Re-enable in msan build. ], + tfrt_enabled = True, deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib",