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

Function MakeNeutral

tensorflow/compiler/jit/mark_for_compilation_pass_test.cc:670–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670Node* MakeNeutral(const Scope& scope, const string& id) {
671 return ops::Const(scope.WithOpName("Const" + id), 42.0f).node();
672}
673} // namespace
674
675TEST(XlaCompilationTest, ResourcesClusteringAllowed) {

Callers 1

TESTFunction · 0.70

Calls 3

WithOpNameMethod · 0.80
ConstFunction · 0.70
nodeMethod · 0.45

Tested by

no test coverage detected