harmony 鸿蒙Tensor

  • 2023-06-24
  • 浏览 (261)

Tensor

概述

张量结构体。

Since:

3.2

Version:

1.0

相关模块:

NNRt

汇总

Public 属性

名称 描述
name String
张量名称。
dataType enum DataType
张量数据类型,详情请参考:DataType
dims int[]
张量维度数组。
format enum Format
张量数据的排列,详情请参考:Format
data struct SharedBuffer
进程通信时用于张量数据传输的结构体,详情请参考:SharedBuffer
quantParams struct QuantParam[]
张量的量化参数数组。详情请参考:QuantParam

类成员变量说明

data

struct SharedBuffer Tensor::data

描述:

进程通信时用于张量数据传输的结构体,详情请参考:SharedBuffer

dataType

enum DataType Tensor::dataType

描述:

张量数据类型,详情请参考:DataType

dims

int [] Tensor::dims

描述:

张量维度数组。

format

enum Format Tensor::format

描述:

张量数据的排列,详情请参考:Format

name

String Tensor::name

描述:

张量名称。

quantParams

struct QuantParam [] Tensor::quantParams

描述:

张量的量化参数数组。详情请参考:QuantParam

分为两种情况,如果长度为一,则所有轴公用一个量化; 若长度不为一,则数组中的每一个量化参数和轴一一对应。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙HDI 参数参考

harmony 鸿蒙ActRecognitionEvent

harmony 鸿蒙Activation

harmony 鸿蒙ActivityRecognitionTypes.idl

harmony 鸿蒙AddFusion

harmony 鸿蒙Alignment

harmony 鸿蒙AllocInfo

harmony 鸿蒙ApduSimIORequestInfo

harmony 鸿蒙ArgMaxFusion

harmony 鸿蒙Audio

0  赞