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_");
30 TosaSerializationOperator* op =
nullptr;
33 case UnaryOperation::Rsqrt:
35 op =
new TosaSerializationOperator(tosa::Op_RSQRT,
44 throw armnn::Exception(
"ConvertElementwiseUnaryToTosaOperator: Unsupported layer type.");
49 std::vector<TosaSerializationTensor*> tensors;
53 if(input0Name.find(
"input0_") != std::string::npos)
56 DType inputDType0 =
ArmNNToDType(inputs[0]->GetDataType());
57 tensors.push_back(
new TosaSerializationTensor(input0Name, inputShape0, inputDType0, {}));
61 DType outputDType0 =
ArmNNToDType(outputs[0]->GetDataType());
63 tensors.push_back(
new TosaSerializationTensor(outputName, outputShape0, outputDType0, {}));
67 return new TosaSerializationBasicBlock(blockName,