9 const std::vector<const TensorInfo*>& inputs,
10 const std::vector<const TensorInfo*>& outputs,
13 std::string inputName = std::string(
"input_");
14 std::string outputName = std::string(
"output0_");
25 std::vector<int32_t> begin(sliceDescriptor->
m_Begin.begin(), sliceDescriptor->
m_Begin.end());
26 std::vector<int32_t> size(sliceDescriptor->
m_Size.begin(), sliceDescriptor->
m_Size.end());
28 TosaSliceAttribute attribute(begin, size);
30 auto* op =
new TosaSerializationOperator(Op_SLICE,
31 Attribute_SliceAttribute,
36 std::vector<TosaSerializationTensor*> tensors;
41 if(inputName.find(
"input_") != std::string::npos)
44 DType inputDType =
ArmNNToDType(inputs[0]->GetDataType());
46 tensors.push_back(
new TosaSerializationTensor(inputName, inputShape, inputDType, {}));
50 DType outputDType =
ArmNNToDType(outputs[0]->GetDataType());
52 tensors.push_back(
new TosaSerializationTensor(outputName, outputShape, outputDType, {}));
56 return new TosaSerializationBasicBlock(blockName,