9 const std::vector<const TensorInfo*>& inputs,
10 const std::vector<const TensorInfo*>& outputs,
13 if (unaryDescriptor->
m_Operation != UnaryOperation::Rsqrt)
15 throw armnn::Exception(
"ConvertRsqrtOperator: Unsupported elementwise unary operation in descriptor.");
18 std::string input0Name = std::string(
"input_");
19 std::string outputName = std::string(
"output0_");
30 auto* op =
new TosaSerializationOperator(tosa::Op_RSQRT,
36 std::vector<TosaSerializationTensor*> tensors;
40 if(input0Name.find(
"input_") != std::string::npos)
43 DType inputDType0 =
ArmNNToDType(inputs[0]->GetDataType());
44 tensors.push_back(
new TosaSerializationTensor(input0Name, inputShape0, inputDType0, {}));
48 DType outputDType0 =
ArmNNToDType(outputs[0]->GetDataType());
50 tensors.push_back(
new TosaSerializationTensor(outputName, outputShape0, outputDType0, {}));
54 return new TosaSerializationBasicBlock(blockName,