9 const std::vector<const TensorInfo*>& inputs,
10 const std::vector<const TensorInfo*>& outputs,
13 std::string inputName = std::string(
"input0_");
14 std::string outputName = std::string(
"output0_");
29 std::vector<int32_t> begin(sliceDescriptor->
m_Begin.begin(), sliceDescriptor->
m_Begin.end());
30 std::vector<int32_t> size(sliceDescriptor->
m_Size.begin(), sliceDescriptor->
m_Size.end());
32 TosaSliceAttribute attribute(begin, size);
34 auto* op =
new TosaSerializationOperator(Op_SLICE,
35 Attribute_SliceAttribute,
40 std::vector<TosaSerializationTensor*> tensors;
45 if(inputName.find(
"input0_") != std::string::npos)
48 DType inputDType =
ArmNNToDType(inputs[0]->GetDataType());
50 tensors.push_back(
new TosaSerializationTensor(inputName, inputShape, inputDType, {}));
54 DType outputDType =
ArmNNToDType(outputs[0]->GetDataType());
56 tensors.push_back(
new TosaSerializationTensor(outputName, outputShape, outputDType, {}));
60 return new TosaSerializationBasicBlock(blockName,