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 */
| 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 |
nothing calls this directly
no test coverage detected