| 1143 | */ |
| 1144 | template <typename... Ts> |
| 1145 | inline arm_compute::Status |
| 1146 | error_on_dynamic_shape(const char *function, const char *file, const int line, Ts &&...tensor_infos) |
| 1147 | { |
| 1148 | const std::array<const ITensorInfo *, sizeof...(Ts)> infos_array{{std::forward<Ts>(tensor_infos)...}}; |
| 1149 | bool has_dynamic = std::any_of(infos_array.begin(), infos_array.end(), |
| 1150 | [&](const ITensorInfo *ti) { return ti != nullptr && ti->is_dynamic(); }); |
| 1151 | ARM_COMPUTE_RETURN_ERROR_ON_LOC_MSG(has_dynamic, function, file, line, "Dynamic tensor shape is not supported"); |
| 1152 | |
| 1153 | return arm_compute::Status{}; |
| 1154 | } |
| 1155 | #define ARM_COMPUTE_ERROR_ON_DYNAMIC_SHAPE(...) \ |
| 1156 | ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_dynamic_shape(__func__, __FILE__, __LINE__, __VA_ARGS__)) |
| 1157 | #define ARM_COMPUTE_RETURN_ERROR_ON_DYNAMIC_SHAPE(...) \ |
nothing calls this directly
no test coverage detected