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

Function GetAdd

tensorflow/core/common_runtime/ring_reducer_test.cc:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113std::unique_ptr<OpKernel> GetAdd(DataType dtype, const DeviceType& device_type,
114 DeviceBase* device) {
115 NodeDef node_def;
116 NodeDefBuilder builder("add_node", "Add");
117 TF_CHECK_OK(builder.Attr("T", dtype)
118 .Input(FakeInput(dtype))
119 .Input(FakeInput(dtype))
120 .Finalize(&node_def));
121 return GetKernel(node_def, device_type, device);
122}
123
124std::unique_ptr<OpKernel> GetDiv(DataType dtype, const DeviceType& device_type,
125 DeviceBase* device) {

Callers 1

DoReduceMethod · 0.70

Calls 5

GetKernelFunction · 0.70
FakeInputFunction · 0.50
FinalizeMethod · 0.45
InputMethod · 0.45
AttrMethod · 0.45

Tested by

no test coverage detected