This commit inserts explicit type instantiation on abs method to fix
Tizen cross-build break.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
#define __NNFW_KERNEL_ACL_UTIL_H__
#include <OperationsUtils.h>
+#include <cmath>
#include <cassert>
#include <functional>
assert(_shape.type == OperandType::FLOAT32);
for( uint32_t i = 0; i < _num_elems; ++i ) {
- if( abs(at<float>(i) - t.at<float>(i)) > 0.001f ) {
+ if( std::fabs(static_cast<float>(at<float>(i) - t.at<float>(i))) > 0.001f ) {
std::cout << "Comparing [" << i << "] " << at<float>(i) << "," << t.at<float>(i) << std::endl;
return false;
}