Check if an internal operator is valid * * @param[in] op Internal operator to check * * @return A status code */
| 124 | * @return A status code |
| 125 | */ |
| 126 | inline 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_ */ |
no test coverage detected