Definition at line 577 of file OnnxParser.cpp.
581 ARMNN_ASSERT_MSG(bufferPtr !=
nullptr, fmt::format(
"Buffer for permutation is null").c_str());
585 if (permutationVector.
has_value() && permutationVector.
value().GetSize() > 0)
589 reinterpret_cast<const T*
>(bufferPtr), data.get(),
sizeof(T));
593 ::memcpy(data.get(), bufferPtr, tensorInfo.
GetNumBytes());
596 return std::make_pair(
ConstTensor(tensorInfo, data.get()), std::move(data));
References ARMNN_ASSERT_MSG, TensorInfo::GetNumBytes(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), PermutationVector::GetSize(), OptionalBase::has_value(), armnnUtils::Permute(), armnnUtils::Permuted(), and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().