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

Function StorageSize

tensorflow/lite/experimental/ruy/test.h:1796–1798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1794
1795template <typename Scalar>
1796int StorageSize(const Matrix<Scalar>& matrix) {
1797 return sizeof(Scalar) * FlatSize(matrix.layout);
1798}
1799
1800// Helper that replicates a buffer and gives out pointers to the replicas.
1801// This is useful when one wants to traverse data so that it is cold in cache.

Callers 1

BenchmarkMethod · 0.85

Calls 1

FlatSizeFunction · 0.70

Tested by

no test coverage detected