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

Method ToShape

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

Turns StrongShape into generic shape.

Source from the content-addressed store, hash-verified

441
442 // Turns StrongShape into generic shape.
443 Shape ToShape() const {
444 std::vector<int32_t> dimensions(StrongShape::size());
445 for (int i = 0; i < StrongShape::size(); ++i) {
446 dimensions[i] = StrongShape::get(i);
447 }
448 return Shape(L, std::move(dimensions));
449 }
450
451 // @return all dimensions multiplied
452 int64_t DimensionsProduct() const {

Callers 4

operator==Method · 0.95
operator!=Method · 0.95
TESTFunction · 0.45
ToStringFunction · 0.45

Calls 3

ShapeClass · 0.70
sizeFunction · 0.50
getFunction · 0.50

Tested by 1

TESTFunction · 0.36