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

Method GetBinaryOpFn

tensorflow/core/framework/variant_op_registry.cc:217–223  ·  view source on GitHub ↗

Special casing BinaryOpFn per op and per device.

Source from the content-addressed store, hash-verified

215
216// Special casing BinaryOpFn per op and per device.
217UnaryVariantOpRegistry::VariantBinaryOpFn*
218UnaryVariantOpRegistry::GetBinaryOpFn(VariantBinaryOp op, StringPiece device,
219 const TypeIndex& type_index) {
220 auto found = binary_op_fns.find({op, device, type_index});
221 if (found == binary_op_fns.end()) return nullptr;
222 return &found->second;
223}
224
225void UnaryVariantOpRegistry::RegisterBinaryOpFn(
226 VariantBinaryOp op, const string& device, const TypeIndex& type_index,

Callers 2

BinaryOpVariantsFunction · 0.80
TESTFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64