MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / operator()

Method operator()

tensorflow/lite/delegates/gpu/common/shape.h:404–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402struct ToShapeFunc {
403 template <Layout T>
404 bool operator()() const {
405 for (int i = 0; i < StrongShape<L>::size(); ++i) {
406 int index = GetAxisIndex<T>(StrongShape<L>::axis(i));
407 if (index < 0) return false;
408 shape->set(i, l.dimensions[index]);
409 }
410 return true;
411 }
412
413 StrongShape<L>* shape;
414 const Shape& l;

Callers

nothing calls this directly

Calls 3

axisFunction · 0.85
sizeFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected