This commit removes const keyword from converting functions in NNAPIConvert.
In general, const is used on a return value of RVO because const affect move semantics.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* @param[in] type NNAPI's operand type
* @return neurun's internal operand type info
*/
-const model::operand::TypeInfo getTypeInfo(const ANeuralNetworksOperandType *type);
+model::operand::TypeInfo getTypeInfo(const ANeuralNetworksOperandType *type);
/**
* @brief Convert operand shape info from NNAPI to internal operand shape
* @param[in] type NNAPI's operand type
* @return neurun's internal operand shape
*/
-const model::operand::Shape getShape(const ANeuralNetworksOperandType *type);
+model::operand::Shape getShape(const ANeuralNetworksOperandType *type);
} // namespace neurun
} // namespace util
return static_cast<model::operand::DataType>(static_cast<uint32_t>(type));
}
-const model::operand::TypeInfo getTypeInfo(const ANeuralNetworksOperandType *type)
+model::operand::TypeInfo getTypeInfo(const ANeuralNetworksOperandType *type)
{
return model::operand::TypeInfo(getDataType((OperandCode)(type->type)), type->scale,
type->zeroPoint);
}
-const model::operand::Shape getShape(const ANeuralNetworksOperandType *type)
+model::operand::Shape getShape(const ANeuralNetworksOperandType *type)
{
model::operand::Shape shape(type->dimensionCount);