19 return arm_compute::DetectionPostProcessLayerInfo(descriptor.
m_MaxDetections,
24 { descriptor.m_ScaleX,
27 descriptor.m_ScaleH },
41 arm_compute::DetectionPostProcessLayerInfo
info =
MakeInfo(descriptor);
43 const arm_compute::TensorInfo aclBoxEncodings =
44 armcomputetensorutils::BuildArmComputeTensorInfo(boxEncodings);
46 const arm_compute::TensorInfo aclScores =
47 armcomputetensorutils::BuildArmComputeTensorInfo(scores);
49 const arm_compute::TensorInfo aclAnchors =
50 armcomputetensorutils::BuildArmComputeTensorInfo(anchors);
52 arm_compute::TensorInfo aclDetectionBoxes =
53 armcomputetensorutils::BuildArmComputeTensorInfo(detectionBoxes);
55 arm_compute::TensorInfo aclDetectionClasses =
56 armcomputetensorutils::BuildArmComputeTensorInfo(detectionClasses);
58 arm_compute::TensorInfo aclDetectionScores =
59 armcomputetensorutils::BuildArmComputeTensorInfo(detectionScores);
61 arm_compute::TensorInfo aclNumDetections =
62 armcomputetensorutils::BuildArmComputeTensorInfo(numDetections);
64 return arm_compute::NEDetectionPostProcessLayer::validate(
86 m_Anchors = std::make_unique<arm_compute::Tensor>();
91 auto AclTensorRef = [](
ITensorHandle* tensor) -> arm_compute::ITensor&
93 return PolymorphicDowncast<IAclTensorHandle*>(tensor)->GetTensor();
96 arm_compute::ITensor& boxEncodings = AclTensorRef(
m_Data.
m_Inputs[0]);
99 arm_compute::ITensor& detectionBoxes = AclTensorRef(
m_Data.
m_Outputs[0]);
100 arm_compute::ITensor& detectionClasses = AclTensorRef(
m_Data.
m_Outputs[1]);
101 arm_compute::ITensor& detectionScores = AclTensorRef(
m_Data.
m_Outputs[2]);
102 arm_compute::ITensor& numDetections = AclTensorRef(
m_Data.
m_Outputs[3]);
104 m_Func.configure(&boxEncodings, &scores, m_Anchors.get(),
105 &detectionBoxes, &detectionClasses, &detectionScores, &numDetections,