diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-06-18 18:22:04 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-18 18:25:01 -0700 |
commit | 27acbe0b4c7f13d52762419d2d819b11c1d9f54b (patch) | |
tree | 2378a5e07b206cd69feab40425b1e70d0ee8b047 /tensorflow/core/protobuf | |
parent | 91d98f5403145ad5899ecdaa8a6564da9bd111c9 (diff) |
Reduce Grappler overhead by skipping optimizers when the graph is tiny.
PiperOrigin-RevId: 201095811
Diffstat (limited to 'tensorflow/core/protobuf')
-rw-r--r-- | tensorflow/core/protobuf/rewriter_config.proto | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/core/protobuf/rewriter_config.proto b/tensorflow/core/protobuf/rewriter_config.proto index bbb25d6f3f..07f984ceea 100644 --- a/tensorflow/core/protobuf/rewriter_config.proto +++ b/tensorflow/core/protobuf/rewriter_config.proto @@ -80,6 +80,12 @@ message RewriterConfig { // is once). NumIterationsType meta_optimizer_iterations = 12; + // The minimum number of nodes in a graph to optimizer. For smaller graphs, + // optimization is skipped. + // 0 means the system picks an appropriate number. + // < 0 means do not skip optimization. + int32 min_graph_nodes = 17; + enum MemOptType { // The default setting (SCHEDULING and SWAPPING HEURISTICS only) DEFAULT_MEM_OPT = 0; |