/external/tensorflow/tensorflow/python/compiler/tensorrt/ |
D | utils.py | 24 def disable_non_trt_optimizers_in_rewriter_config(rewriter_config): argument 28 rewriter_config.arithmetic_optimization = off 29 rewriter_config.auto_mixed_precision = off 30 rewriter_config.auto_parallel.enable = False 31 rewriter_config.constant_folding = off 32 rewriter_config.debug_stripper = off 33 rewriter_config.dependency_optimization = off 35 rewriter_config.disable_meta_optimizer = False 36 rewriter_config.disable_model_pruning = True 37 rewriter_config.function_optimization = off [all …]
|
D | trt_convert_test.py | 81 def _GetConfigProto(self, rewriter_config=None): argument 85 if rewriter_config: 86 config.graph_options.rewrite_options.CopyFrom(rewriter_config) 356 rewriter_config=trt_convert.get_tensorrt_rewriter_config(
|
/external/tensorflow/tensorflow/core/grappler/clusters/ |
D | cluster.cc | 74 auto rewriter_config = in DisableOptimizer() local 76 rewriter_config->set_layout_optimizer(RewriterConfig::OFF); in DisableOptimizer() 77 rewriter_config->set_disable_model_pruning(true); in DisableOptimizer() 78 rewriter_config->set_function_optimization(RewriterConfig::OFF); in DisableOptimizer() 79 rewriter_config->set_arithmetic_optimization(RewriterConfig::OFF); in DisableOptimizer() 80 rewriter_config->set_loop_optimization(RewriterConfig::OFF); in DisableOptimizer() 81 rewriter_config->set_dependency_optimization(RewriterConfig::OFF); in DisableOptimizer() 82 rewriter_config->set_constant_folding(RewriterConfig::OFF); in DisableOptimizer() 83 rewriter_config->set_memory_optimization(RewriterConfig::NO_MEM_OPT); in DisableOptimizer() 84 rewriter_config->set_shape_optimization(RewriterConfig::OFF); in DisableOptimizer() [all …]
|
/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | meta_optimizer_test.cc | 147 auto& rewriter_config = in TEST_F() local 149 rewriter_config.add_optimizers("TestOptimizer"); in TEST_F() 150 rewriter_config.set_min_graph_nodes(-1); in TEST_F() 166 auto& rewriter_config = in TEST_F() local 168 rewriter_config.add_optimizers("TestOptimizerWithParams"); in TEST_F() 169 auto* custom_config = rewriter_config.add_custom_optimizers(); in TEST_F() 188 auto& rewriter_config = in TEST_F() local 190 rewriter_config.add_optimizers("TestOptimizer"); in TEST_F() 191 auto customGraphOptimizer = rewriter_config.add_custom_optimizers(); in TEST_F() 193 rewriter_config.set_min_graph_nodes(-1); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | auto_shard_dataset_op.cc | 76 RewriterConfig rewriter_config; in CreateConfig() local 77 rewriter_config.set_fail_on_optimizer_errors(true); in CreateConfig() 78 rewriter_config.set_meta_optimizer_iterations(RewriterConfig::ONE); in CreateConfig() 80 rewriter_config.add_optimizers(kOptimizerName); in CreateConfig() 81 auto custom_optimizer = rewriter_config.add_custom_optimizers(); in CreateConfig() 96 return rewriter_config; in CreateConfig()
|
/external/tensorflow/tensorflow/core/grappler/optimizers/inference/ |
D | batch_op_rewriter_test.cc | 70 RewriterConfig_CustomGraphOptimizer rewriter_config; in MakeConfig() local 71 (*rewriter_config.mutable_parameter_map())["batch_op_rewrite_config"].set_s( in MakeConfig() 73 return rewriter_config; in MakeConfig() 86 RewriterConfig_CustomGraphOptimizer rewriter_config = MakeConfig(config); in TEST_P() local 88 TF_ASSERT_OK(optimizer.Init(&rewriter_config)); in TEST_P()
|
/external/tensorflow/tensorflow/python/grappler/ |
D | tf_optimizer_test.py | 52 rewriter_config = config.graph_options.rewrite_options 53 rewriter_config.optimizers.append('constfold') 54 rewriter_config.min_graph_nodes = -1 80 rewriter_config = config.graph_options.rewrite_options 81 rewriter_config.min_graph_nodes = -1 125 rewriter_config = config.graph_options.rewrite_options 126 rewriter_config.min_graph_nodes = -1
|
D | cost_analyzer_tool.py | 83 if FLAGS.rewriter_config is not None: 84 text_format.Merge(FLAGS.rewriter_config,
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | optimize_dataset_op.cc | 153 RewriterConfig rewriter_config; in CreateConfig() local 154 rewriter_config.add_optimizers(kOptimizerName); in CreateConfig() 155 rewriter_config.set_meta_optimizer_iterations(RewriterConfig::ONE); in CreateConfig() 156 rewriter_config.set_fail_on_optimizer_errors(true); in CreateConfig() 157 auto custom_optimizer = rewriter_config.add_custom_optimizers(); in CreateConfig() 170 return rewriter_config; in CreateConfig()
|
/external/tensorflow/tensorflow/python/util/ |
D | function_utils.py | 129 rewriter_config = config.graph_options.rewrite_options 130 rewriter_config.disable_meta_optimizer = True
|
/external/tensorflow/tensorflow/python/debug/lib/ |
D | debug_grappler_test.py | 44 rewriter_config = rewriter_config_pb2.RewriterConfig( 47 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
D | debug_graph_reconstruction_test.py | 45 rewriter_config = rewriter_config_pb2.RewriterConfig( 49 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
D | debug_gradients_test.py | 43 rewriter_config = rewriter_config_pb2.RewriterConfig( 46 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
D | session_debug_testlib.py | 59 rewriter_config = rewriter_config_pb2.RewriterConfig( 63 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
/external/tensorflow/tensorflow/python/debug/wrappers/ |
D | framework_test.py | 148 rewriter_config = rewriter_config_pb2.RewriterConfig( 150 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
D | local_cli_wrapper_test.py | 161 rewriter_config = rewriter_config_pb2.RewriterConfig( 165 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
/external/tensorflow/tensorflow/python/debug/cli/ |
D | profile_analyzer_cli_test.py | 40 rewriter_config = rewriter_config_pb2.RewriterConfig( 43 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
D | analyzer_cli_test.py | 63 rewriter_config = rewriter_config_pb2.RewriterConfig( 70 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
/external/tensorflow/tensorflow/core/protobuf/ |
D | BUILD | 33 "rewriter_config.proto",
|
D | config.proto | 10 import "tensorflow/core/protobuf/rewriter_config.proto";
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | jit_test.py | 47 rewriter_config = rewriter_config_pb2.RewriterConfig( 52 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
/external/tensorflow/tensorflow/python/profiler/ |
D | model_analyzer_test.py | 54 rewriter_config = rewriter_config_pb2.RewriterConfig( 56 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
|
/external/tensorflow/tensorflow/python/framework/ |
D | function_test.py | 503 rewriter_config = rewriter_config_pb2.RewriterConfig( 513 rewrite_options=rewriter_config))
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | placer_test.cc | 277 RewriterConfig* rewriter_config = graph_opts->mutable_rewrite_options(); in CallOptPassesAndPlace() local 278 rewriter_config->set_disable_meta_optimizer(true); in CallOptPassesAndPlace()
|
/external/tensorflow/tensorflow/core/ |
D | BUILD | 175 "//tensorflow/core/protobuf:rewriter_config.proto",
|