17#include "../KernelGenerator.h"
18#include "../Validator.h"
25void Validator::visit(
const ir::operation::SquaredDifference &) {
_supported =
true; }
27void KernelGenerator::visit(
const ir::operation::SquaredDifference &node)
29 const auto ofm_index{node.getOutputs().at(0)};
33 auto ofm_tensor = _tensor_reg->getAclTensor(ofm_index);
34 auto lhs_tensor = _tensor_reg->getAclTensor(lhs_index);
35 auto rhs_tensor = _tensor_reg->getAclTensor(rhs_index);
37 auto fn = acl_common::generateLayer<arm_compute::NEElementwiseSquaredDiff>(
38 lhs_tensor->handle(), rhs_tensor->handle(), ofm_tensor->handle());
std::unique_ptr< exec::IFunction > _return_fn
std::unique_ptr< AclFunction > asAclFunction(std::unique_ptr<::arm_compute::IFunction > &&layer)