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

Method GetUnaryOpFn

tensorflow/core/framework/variant_op_registry.cc:175–180  ·  view source on GitHub ↗

Special casing UnaryOpFn per op and per device.

Source from the content-addressed store, hash-verified

173
174// Special casing UnaryOpFn per op and per device.
175UnaryVariantOpRegistry::VariantUnaryOpFn* UnaryVariantOpRegistry::GetUnaryOpFn(
176 VariantUnaryOp op, StringPiece device, const TypeIndex& type_index) {
177 auto found = unary_op_fns.find({op, device, type_index});
178 if (found == unary_op_fns.end()) return nullptr;
179 return &found->second;
180}
181
182void UnaryVariantOpRegistry::RegisterUnaryOpFn(
183 VariantUnaryOp op, const string& device, const TypeIndex& type_index,

Callers 2

UnaryOpVariantFunction · 0.80
TESTFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64