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

Method IsScalar

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

Returns whether this is a single-element allocation.

Source from the content-addressed store, hash-verified

139
140 // Returns whether this is a single-element allocation.
141 bool IsScalar() const { return ElementCount() == 1; }
142
143 // Create a typed area of DeviceMemory with a given opaque pointer and the
144 // quantity of bytes in the allocation. This function is broken out to

Callers

nothing calls this directly

Calls 1

ElementCountFunction · 0.85

Tested by

no test coverage detected