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

Function NoRewriteSessionConfig

tensorflow/compiler/tests/jit_test.py:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45# Disable rewrites to make sure we don't end up having to update this test
46# whenever we implement new ones.
47def NoRewriteSessionConfig():
48 rewriter_config = rewriter_config_pb2.RewriterConfig(
49 disable_model_pruning=True,
50 arithmetic_optimization=rewriter_config_pb2.RewriterConfig.OFF,
51 dependency_optimization=rewriter_config_pb2.RewriterConfig.OFF,
52 function_optimization=rewriter_config_pb2.RewriterConfig.OFF)
53 graph_options = config_pb2.GraphOptions(rewrite_options=rewriter_config)
54 return config_pb2.ConfigProto(graph_options=graph_options)
55
56
57def CompiledKernel(fn, *inputs, **kwargs):

Callers 11

_compareMethod · 0.85
testReshapeMethod · 0.85
testIgnoredArgumentsMethod · 0.85
testLoopsMethod · 0.85
testCondMethod · 0.85
testNestedFunctionMethod · 0.85
testLoopDeadlockMethod · 0.85
_RunMethod · 0.85
testLazyCompilationMethod · 0.85
testIsMegamorphicMethod · 0.85
testIsNotMegamorphicMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected