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

Function validate_internal_operator

src/common/IOperator.h:126–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

124 * @return A status code
125 */
126inline StatusCode validate_internal_operator(const IOperator *op)
127{
128 if (op == nullptr || !op->is_valid())
129 {
130 ARM_COMPUTE_LOG_ERROR_ACL("[IOperator]: Invalid operator object");
131 return StatusCode::InvalidArgument;
132 }
133 return StatusCode::Success;
134}
135} // namespace detail
136} // namespace arm_compute
137#endif /* SRC_COMMON_IOPERATOR_H_ */

Callers 2

AclRunOperatorFunction · 0.85
AclDestroyOperatorFunction · 0.85

Calls 1

is_validMethod · 0.45

Tested by

no test coverage detected