9 const std::vector<const TensorInfo*>& inputs,
10 const std::vector<const TensorInfo*>& outputs,
13 std::string input0Name = std::string(
"input0_");
14 std::string outputName = std::string(
"output0_");
31 TosaTransposeAttribute attribute(mappings);
33 auto* op =
new TosaSerializationOperator(Op_TRANSPOSE,
34 Attribute_TransposeAttribute,
40 std::vector<TosaSerializationTensor*> tensors;
45 if(input0Name.find(
"input0_") != std::string::npos)
48 DType inputDType0 =
ArmNNToDType(inputs[0]->GetDataType());
50 tensors.push_back(
new TosaSerializationTensor(input0Name, inputShape0, inputDType0, {}));
54 DType outputDType0 =
ArmNNToDType(outputs[0]->GetDataType());
56 tensors.push_back(
new TosaSerializationTensor(outputName, outputShape0, outputDType0, {}));
60 return new TosaSerializationBasicBlock(blockName,