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

Method NumElements

tensorflow/core/framework/tensor.h:268–268  ·  view source on GitHub ↗

Convenience accessor for the tensor shape.

Source from the content-addressed store, hash-verified

266
267 /// Convenience accessor for the tensor shape.
268 int64 NumElements() const { return shape().num_elements(); }
269
270 bool IsSameSize(const Tensor& b) const {
271 return shape().IsSameSize(b.shape());

Callers 1

CopyFromMethod · 0.45

Calls 2

shapeFunction · 0.50
num_elementsMethod · 0.45

Tested by

no test coverage detected