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

Method ElementCount

tensorflow/stream_executor/device_memory.h:138–138  ·  view source on GitHub ↗

Returns the number of elements of type ElemT that constitute this allocation.

Source from the content-addressed store, hash-verified

136 // Returns the number of elements of type ElemT that constitute this
137 // allocation.
138 uint64 ElementCount() const { return size() / sizeof(ElemT); }
139
140 // Returns whether this is a single-element allocation.
141 bool IsScalar() const { return ElementCount() == 1; }

Callers

nothing calls this directly

Calls 1

sizeFunction · 0.50

Tested by

no test coverage detected