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

Method GetDeviceCopyFn

tensorflow/core/framework/variant_op_registry.cc:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103#undef REGISTER_VARIANT_DECODE_TYPE
104
105UnaryVariantOpRegistry::AsyncVariantDeviceCopyFn*
106UnaryVariantOpRegistry::GetDeviceCopyFn(
107 const VariantDeviceCopyDirection direction, const TypeIndex& type_index) {
108 auto found = device_copy_fns.find(std::make_pair(direction, type_index));
109 if (found == device_copy_fns.end()) return nullptr;
110 return &found->second;
111}
112
113void UnaryVariantOpRegistry::RegisterDeviceCopyFn(
114 const VariantDeviceCopyDirection direction, const TypeIndex& type_index,

Callers 2

TESTFunction · 0.80
VariantDeviceCopyFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64