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

Function DecodeVariantImpl

tensorflow/core/framework/variant_encode_decode.h:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83// Specialization for POD type
84template <typename T>
85bool DecodeVariantImpl(VariantTensorData data,
86 TypeResolver<T, true /* is_pod */, false /* Tensor */,
87 false /* protobuf */>,
88 T* value) {
89 return data.get_metadata(value);
90}
91
92// Specialization for tensorflow::Tensor
93template <typename T>

Callers 1

DecodeVariantFunction · 0.85

Calls 4

get_metadataMethod · 0.80
tensorsMethod · 0.80
ParseFromStringMethod · 0.45
DecodeMethod · 0.45

Tested by

no test coverage detected