11 const std::vector<const TensorInfo*>& outputs)
13 std::string outputName = std::string(
"constant_");
16 std::vector<uint8_t> uint8Data;
22 outputName.append(std::to_string(layer->
GetGuid()));
23 blockName.append(std::to_string(layer->
GetGuid()));
25 auto constantLayer = PolymorphicDowncast<const armnn::ConstantLayer*>(layer);
26 auto tensorInfo = constantLayer->GetOutputSlot().GetTensorInfo();
31 auto* op =
new TosaSerializationOperator(Op_CONST, Attribute_NONE,
nullptr, {}, {outputName});
34 DType outputDType0 =
ArmNNToDType(outputs[0]->GetDataType());
37 auto* outputTensor0 =
new TosaSerializationTensor(outputName, outputShape0, outputDType0, uint8Data);
39 return new TosaSerializationBasicBlock(blockName,