aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/function_test.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-11 12:10:56 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-11 12:14:50 -0800
commit5c9ecbc32e17821506ee222fa2d4ce9c733a1248 (patch)
tree0c80fd1c60022f05f930548067166476e7753774 /tensorflow/core/common_runtime/function_test.cc
parentf433d35dabd61d1c551a8c08def24982dbf920b9 (diff)
Increase number of inlined elements in EdgeSet from 2 to 4 to speed up graph construction and reduce startup time in TensorFlow.
In the motivating case, this change decreases the time for a RegisterGraph RPC with a large graph from 10 minutes to 40s. Without this change, a large portion of the time is spent walking the red-black tree. PiperOrigin-RevId: 181643594
Diffstat (limited to 'tensorflow/core/common_runtime/function_test.cc')
-rw-r--r--tensorflow/core/common_runtime/function_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/common_runtime/function_test.cc b/tensorflow/core/common_runtime/function_test.cc
index 853484d520..15c2b95bfe 100644
--- a/tensorflow/core/common_runtime/function_test.cc
+++ b/tensorflow/core/common_runtime/function_test.cc
@@ -686,7 +686,7 @@ TEST_F(FunctionLibraryRuntimeTest, OptimizeGraph) {
Scope s = Scope::NewRootScope();
auto x = ops::_Arg(s.WithOpName("x"), DT_FLOAT, 0);
auto x4_x2_scale = ops::Const<float>(
- s.WithOpName("x4/x2/scale/_12__cf__6")
+ s.WithOpName("x4/x2/scale/_15__cf__9")
.WithDevice("/job:localhost/replica:0/task:0/device:CPU:0"),
2.0f);
auto x4_x2_y = ops::Mul(s.WithOpName("x4/x2/y"), x, x4_x2_scale);