17 static constexpr arm_compute::ConvertPolicy g_AclConvertPolicy = arm_compute::ConvertPolicy::SATURATE;
28 return arm_compute::Status{arm_compute::ErrorCode::RUNTIME_ERROR,
"Cast to Boolean unsupported"};
31 arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
32 arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
34 return arm_compute::NECast::validate(&aclInput, &aclOutput, g_AclConvertPolicy);
42 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
43 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
45 m_CastLayer.configure(&input, &output, g_AclConvertPolicy);
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
NeonCastWorkload(const CastQueueDescriptor &descriptor, const WorkloadInfo &info)
virtual void Execute() const override
DataType GetDataType() const
Copyright (c) 2021 ARM Limited and Contributors.
arm_compute::Status NeonCastValidate(const TensorInfo &input, const TensorInfo &output)
std::vector< ITensorHandle * > m_Inputs
std::vector< ITensorHandle * > m_Outputs
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
Contains information about TensorInfos of a layer.