17 #include <arm_compute/runtime/CL/functions/CLConv3D.h>
21 using namespace armcomputetensorutils;
28 bool isFastMathEnabled,
31 const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input, descriptor.
m_DataLayout);
32 const arm_compute::TensorInfo aclWeightsInfo = BuildArmComputeTensorInfo(weights, descriptor.
m_DataLayout);
34 arm_compute::TensorInfo aclBiasesInfo;
35 arm_compute::TensorInfo* optionalAclBiasesInfo =
nullptr;
41 "ArmNN ClConvolution3dWorkload has empty bias value."};
43 aclBiasesInfo = BuildArmComputeTensorInfo(biases.
value(), descriptor.
m_DataLayout);
44 optionalAclBiasesInfo = &aclBiasesInfo;
47 const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output, descriptor.
m_DataLayout);
51 activationDescriptor);
53 return arm_compute::CLConv3D::validate(&aclInputInfo,
55 optionalAclBiasesInfo,
62 std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager,
63 const arm_compute::CLCompileContext& clCompileContext,
64 const bool isFastMathEnabled)
66 , m_ConvolutionLayer()
75 arm_compute::ICLTensor* biasesPtr =
nullptr;
83 input.info()->set_data_layout(aclDataLayout);
84 weights.info()->set_data_layout(aclDataLayout);
85 output.info()->set_data_layout(aclDataLayout);
92 m_ConvolutionLayer.configure(clCompileContext,
113 m_ConvolutionLayer.prepare();