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

Function validate_internal_tensor

src/common/ITensorV2.h:128–136  ·  view source on GitHub ↗

Check if an internal tensor is valid * * @param[in] tensor Internal tensor to check * * @return A status code */

Source from the content-addressed store, hash-verified

126 * @return A status code
127 */
128inline StatusCode validate_internal_tensor(const ITensorV2 *tensor)
129{
130 if (tensor == nullptr || !tensor->is_valid())
131 {
132 ARM_COMPUTE_LOG_ERROR_ACL("[ITensorV2]: Invalid tensor object");
133 return StatusCode::InvalidArgument;
134 }
135 return StatusCode::Success;
136}
137} // namespace detail
138} // namespace arm_compute
139#endif /* SRC_COMMON_ITENSOR_H_ */

Callers 7

AclMapTensorFunction · 0.85
AclUnmapTensorFunction · 0.85
AclTensorImportFunction · 0.85
AclDestroyTensorFunction · 0.85
PackTensorInternalFunction · 0.85
AclGetClMemFunction · 0.85

Calls 1

is_validMethod · 0.45

Tested by

no test coverage detected