MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / validate_arguments

Method validate_arguments

src/cpu/kernels/CpuElementwiseKernel.cpp:348–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348Status CpuArithmeticKernel::validate_arguments(const ITensorInfo &src0, const ITensorInfo &src1, const ITensorInfo &dst)
349{
350 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(&src0, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED,
351 DataType::S16, DataType::F16, DataType::S32, DataType::F32);
352 // Validate in case of configured dst
353 if (dst.total_size() > 0)
354 {
355 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(&src0, &dst);
356 }
357 return validate_arguments_common(src0, src1, dst);
358}
359
360Status CpuArithmeticKernel::validate(ArithmeticOperation op,
361 const ITensorInfo *src0,

Callers

nothing calls this directly

Calls 2

validate_argumentsFunction · 0.70
total_sizeMethod · 0.45

Tested by

no test coverage detected