MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetOptimizedGraph

Function GetOptimizedGraph

tensorflow/python/kernel_tests/while_v2_test.py:1021–1028  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1019
1020
1021def GetOptimizedGraph():
1022 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
1023 config = config_pb2.ConfigProto()
1024 config.graph_options.rewrite_options.CopyFrom(
1025 rewriter_config_pb2.RewriterConfig(
1026 constant_folding=rewriter_config_pb2.RewriterConfig.OFF,
1027 memory_optimization=rewriter_config_pb2.RewriterConfig.MANUAL))
1028 return tf_optimizer.OptimizeGraph(config, mg)
1029
1030
1031if __name__ == "__main__":

Callers 5

_testPruningMethod · 0.85
testPruningNestedMethod · 0.85
testPruningNested2Method · 0.85
testPruningNested3Method · 0.85

Calls 2

CopyFromMethod · 0.45
OptimizeGraphMethod · 0.45

Tested by

no test coverage detected