MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / get_size

Method get_size

arm_compute/Acl.hpp:659–665  ·  view source on GitHub ↗

Get the size of the tensor in byte * * @note The size isn't based on allocated memory, but based on information in its descriptor (dimensions, data type, etc.). * * @return The size of the tensor in byte */

Source from the content-addressed store, hash-verified

657 * @return The size of the tensor in byte
658 */
659 uint64_t get_size()
660 {
661 uint64_t size{0};
662 const auto st = detail::as_enum<StatusCode>(AclGetTensorSize(_object.get(), &size));
663 report_status(st, "[Compute Library] Failed to get the size of the tensor");
664 return size;
665 }
666 /** Get the descriptor of this tensor
667 *
668 * @return The descriptor describing the characteristics of this tensor

Callers

nothing calls this directly

Calls 3

AclGetTensorSizeFunction · 0.85
report_statusFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected