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

Function SetFeatureValues

tensorflow/core/example/feature_util.h:332–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330// field.
331template <typename IteratorType>
332void SetFeatureValues(IteratorType first, IteratorType last, Feature* feature) {
333 using FeatureType = typename internal::FeatureTrait<
334 typename std::iterator_traits<IteratorType>::value_type>::Type;
335 ClearFeatureValues<FeatureType>(feature);
336 AppendFeatureValues(first, last, feature);
337}
338
339// Clears the feature's repeated field (int64, float, or string). Copies all
340// elements from the initializer list into the feature's repeated field.

Callers 1

TESTFunction · 0.85

Calls 4

AppendFeatureValuesFunction · 0.85
GetFeatureFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.68