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

Function error_on_dynamic_shape

arm_compute/core/Validate.h:1145–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143 */
1144template <typename... Ts>
1145inline arm_compute::Status
1146error_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(...) \

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
is_dynamicMethod · 0.45

Tested by

no test coverage detected