18 static constexpr arm_compute::ConvertPolicy g_AclConvertPolicy = arm_compute::ConvertPolicy::SATURATE;
22 const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
23 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
25 return arm_compute::CLCast::validate(&aclInput, &aclOutput, g_AclConvertPolicy);
30 const arm_compute::CLCompileContext& clCompileContext)
35 arm_compute::ICLTensor& input = PolymorphicDowncast<ClTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
36 arm_compute::ICLTensor& output = PolymorphicDowncast<ClTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
40 m_CastLayer.configure(clCompileContext, &input, &output, g_AclConvertPolicy);