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

Function EncodeVariantImpl

tensorflow/core/framework/variant_encode_decode.h:51–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49// Specialization for POD type
50template <typename T>
51void EncodeVariantImpl(const T& value, TypeResolver<T, true /* is_pod */>,
52 VariantTensorData* data) {
53 data->set_metadata(value);
54}
55
56// Specialization for tensorflow::Tensor
57template <typename T>

Callers 1

EncodeVariantFunction · 0.85

Calls 5

set_metadataMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45
SerializeToStringMethod · 0.45
EncodeMethod · 0.45

Tested by

no test coverage detected