openharmony 鸿蒙 capi-neuralnetworkruntime-oh-nn-tensor

2026-08-25 浏览 (1)

OH_NN_Tensor

typedef struct OH_NN_Tensor {...} OH_NN_Tensor

Overview

Defines the tensor structure.

It is usually used to construct data nodes and operator parameters in a model diagram. When constructing a tensor, you need to specify the data type, number of dimensions, dimension information, and quantization information.

Since: 9

Deprecated from: 11

Substitute: NN_TensorDesc

Related module: NeuralNetworkRuntime

Header file: neural_network_runtime_type.h

Summary

Member Variables

NameDescription
OH_NN_DataType dataTypeData type of the specified tensor. The value must be an enum of OH_NN_DataType.
uint32_t dimensionCountNumber of dimensions of the specified tensor.
const int32_t *dimensionsDimension information (shape) of the specified tensor.
const OH_NN_QuantParam *quantParamQuantization information of the specified tensor. The value must be an enum of OH_NN_QuantParam.
OH_NN_TensorType typeType of the specified tensor. The value is related to the tensor usage. If the tensor is used as the input or output of the model, set type to OH_NN_TENSOR. If the tensor is used as an operator parameter, select an enum value other than OH_NN_TENSOR from OH_NN_TensorType.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-neuralnetworkruntime-nn-tensor

openharmony 鸿蒙 capi-neuralnetworkruntime-oh-nnexecutor

openharmony 鸿蒙 capi-neuralnetworkruntime-oh-nn-quantparam

openharmony 鸿蒙 capi-neuralnetworkruntime-oh-nn-uint32array

openharmony 鸿蒙 capi-neural-network-runtime-h

openharmony 鸿蒙 capi-neuralnetworkruntime-nn-quantparam

openharmony 鸿蒙 Readme-EN

openharmony 鸿蒙 capi-neuralnetworkruntime-oh-nnmodel

openharmony 鸿蒙 capi-neuralnetworkruntime-nn-tensordesc

openharmony 鸿蒙 capi-neuralnetworkruntime

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/uLjUupgA