21 m_Weights = std::make_unique<ScopedTensorHandle>(*(descriptor.
m_Weight));
22 const TensorInfo& weightsInfo = m_Weights->GetTensorInfo();
24 m_WeightsDecoder = MakeDecoder<float>(weightsInfo, m_Weights->Map(
true));
25 m_WeightsShape = weightsInfo.
GetShape();
30 m_Biases = std::make_unique<ScopedTensorHandle>(*(descriptor.
m_Bias));
31 const TensorInfo& biasesInfo = m_Biases->GetTensorInfo();
32 m_BiasesDecoder = MakeDecoder<float>(biasesInfo, m_Biases->Map(
true));
42 std::vector<ITensorHandle*> outputs)
const
49 std::unique_ptr<Decoder<float>> inputDecoder = MakeDecoder<float>(inputInfo, inputs[0]->
Map());
50 std::unique_ptr<Encoder<float>> outputEncoder = MakeEncoder<float>(outputInfo, outputs[0]->
Map());
59 m_BiasesDecoder.get());
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
RefTransposeConvolution2dWorkload(const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
void Execute() const override
const TensorShape & GetShape() const
Copyright (c) 2021 ARM Limited and Contributors.
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
void TransposeConvolution2dImpl(const TransposeConvolution2dDescriptor &descriptor, const TensorShape &inputShape, Decoder< float > &inputDecoder, const TensorShape &outputShape, Encoder< float > &outputEncoder, const TensorShape &weightsShape, Decoder< float > &weightsDecoder, Decoder< float > *biasesDecoder)
std::vector< ITensorHandle * > m_Inputs
std::vector< ITensorHandle * > m_Outputs
LayerDescriptor m_Parameters
bool m_BiasEnabled
Enable/disable bias.
const ConstTensorHandle * m_Bias
const ConstTensorHandle * m_Weight
Contains information about TensorInfos of a layer.