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

Method BuildFrom

tensorflow/lite/kernels/internal/types.h:238–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236
237 template <typename T>
238 inline void BuildFrom(const T& src_iterable) {
239 const int dimensions_count =
240 std::distance(src_iterable.begin(), src_iterable.end());
241 Resize(dimensions_count);
242 int32* data = DimsData();
243 for (auto it : src_iterable) {
244 *data = it;
245 ++data;
246 }
247 }
248
249 // This will probably be factored out. Old code made substantial use of 4-D
250 // shapes, and so this function is used to extend smaller shapes. Note that

Callers 4

ComputeConvSizesFunction · 0.80
ShapeFromDimsFunction · 0.80

Calls 3

ResizeFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 2

ComputeConvSizesFunction · 0.64