Check if an internal TensorPack is valid * * @param[in] pack Internal tensor pack to check * * @return A status code */
| 118 | * @return A status code |
| 119 | */ |
| 120 | inline StatusCode validate_internal_pack(const TensorPack *pack) |
| 121 | { |
| 122 | if (pack == nullptr || !pack->is_valid()) |
| 123 | { |
| 124 | ARM_COMPUTE_LOG_ERROR_ACL("[TensorPack]: Invalid tensor pack object"); |
| 125 | return StatusCode::InvalidArgument; |
| 126 | } |
| 127 | return StatusCode::Success; |
| 128 | } |
| 129 | } // namespace detail |
| 130 | } // namespace arm_compute |
| 131 | #endif /* SRC_COMMON_ITENSORPACK_H_ */ |
no test coverage detected