MCPcopy Create free account
hub / github.com/alibaba/euler / ComputeNumElements

Method ComputeNumElements

euler/core/framework/tensor_shape.h:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104 private:
105 void ComputeNumElements() {
106 num_elements_ = 1;
107 for (size_t dim : dims_) {
108 num_elements_ *= dim;
109 }
110 }
111
112 size_t num_elements_;
113 std::vector<size_t> dims_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected