aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/gpu/gpu_stream_util_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/common_runtime/gpu/gpu_stream_util_test.cc')
-rw-r--r--tensorflow/core/common_runtime/gpu/gpu_stream_util_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/common_runtime/gpu/gpu_stream_util_test.cc b/tensorflow/core/common_runtime/gpu/gpu_stream_util_test.cc
index 003e416bbe..7763a4f2e6 100644
--- a/tensorflow/core/common_runtime/gpu/gpu_stream_util_test.cc
+++ b/tensorflow/core/common_runtime/gpu/gpu_stream_util_test.cc
@@ -64,7 +64,7 @@ TEST_F(GpuStreamUtilTest, EmptyGraph) {
}
TEST_F(GpuStreamUtilTest, SimpleGraphOneStream) {
- auto root = Scope::NewRootScope().ExitOnError();
+ auto root = Scope::DisabledShapeInferenceScope().ExitOnError();
ops::MatMul(root, {}, {});
Graph g(OpRegistry::Global());
TF_ASSERT_OK(root.ToGraph(&g));
@@ -83,7 +83,7 @@ TEST_F(GpuStreamUtilTest, SimpleGraphOneStream) {
}
TEST_F(GpuStreamUtilTest, SimpleGraphManyStreams) {
- auto root = Scope::NewRootScope().ExitOnError();
+ auto root = Scope::DisabledShapeInferenceScope().ExitOnError();
ops::MatMul(root, {}, {});
Graph g(OpRegistry::Global());
TF_ASSERT_OK(root.ToGraph(&g));
@@ -104,7 +104,7 @@ TEST_F(GpuStreamUtilTest, SimpleGraphManyStreams) {
}
TEST_F(GpuStreamUtilTest, StreamOverrides) {
- auto root = Scope::NewRootScope().ExitOnError();
+ auto root = Scope::DisabledShapeInferenceScope().ExitOnError();
ops::_Recv(root.WithOpName("input"), DT_FLOAT, "input", "/cpu:0", 0,
"/device:GPU:0");
Output n = ops::MatMul(root, {}, {});