14 static constexpr arm_compute::ConvertPolicy g_AclConvertPolicy = arm_compute::ConvertPolicy::SATURATE;
35 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
36 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
38 if (arm_compute::NECast::validate(input.info(), output.info(), g_AclConvertPolicy))
41 m_Cast.reset(
new arm_compute::NECast());
42 m_Cast->configure(&input, &output, g_AclConvertPolicy);
63 auto convertFunc = [](uint8_t* dst,
const uint8_t* src,
size_t size)
65 auto input =
reinterpret_cast<const Half*
>(src);
66 auto output =
reinterpret_cast<float*
>(dst);
67 size_t numElements = size/2;
71 for (
const auto& pair : m_TensorHandlePairs)
111 void NeonConvertFp16ToFp32Workload::Reconfigure()