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

Function UnaryOp

tensorflow/core/graph/graph_def_builder.cc:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108Node* UnaryOp(const string& op_name, NodeOut input,
109 const GraphDefBuilder::Options& opts) {
110 if (opts.HaveError()) return nullptr;
111 NodeBuilder node_builder(opts.GetNameForOp(op_name), op_name,
112 opts.op_registry());
113 node_builder.Input(std::move(input));
114 return opts.FinalizeBuilder(&node_builder);
115}
116
117Node* BinaryOp(const string& op_name, NodeOut a, NodeOut b,
118 const GraphDefBuilder::Options& opts) {

Callers 6

AddControlNextFunction · 0.70
BM_SubgraphHelperFunction · 0.70
TESTFunction · 0.70
CollectiveReduceNodeFunction · 0.70
InitGraphFunction · 0.70
InitGraph2Function · 0.70

Calls 5

HaveErrorMethod · 0.80
FinalizeBuilderMethod · 0.80
GetNameForOpMethod · 0.45
op_registryMethod · 0.45
InputMethod · 0.45

Tested by 5

BM_SubgraphHelperFunction · 0.56
TESTFunction · 0.56
CollectiveReduceNodeFunction · 0.56
InitGraphFunction · 0.56
InitGraph2Function · 0.56