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

Method GetDecodeFn

tensorflow/core/framework/variant_op_registry.cc:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42UnaryVariantOpRegistry::VariantDecodeFn* UnaryVariantOpRegistry::GetDecodeFn(
43 StringPiece type_name) {
44 auto found = decode_fns.find(type_name);
45 if (found == decode_fns.end()) return nullptr;
46 return &found->second;
47}
48
49void UnaryVariantOpRegistry::RegisterDecodeFn(
50 const string& type_name, const VariantDecodeFn& decode_fn) {

Callers 2

TESTFunction · 0.80
DecodeUnaryVariantFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64