Rockchip · AI & Linux Hub

AI 推論

RKNN2 V2.5.0・RV1103B/RV1106B:基本とコンボ

RKNN2 V2.5.0・RV1103B/RV1106B:基本とコンボ・コンボ・コンプリート・オペレータのパラメータとV2.5.0ソースからの制約。

このRKNN2 V2.5.0プラットフォームリファレンスは、ArmSoM開発者がモデルを選択および適応するのに役立ちます。 すべてのArmSoMボードでのサポートを確立しません。ボードSOC、実際のツールキット2、ランタイム、NPUドライバ、BSPバージョンを確認します。 ソースは、ユニバーサルLinuxカーネルバージョンを指すものではありません。 ArmSoM ハードウェア検証は行いません。

出典:中国と英語のRKNN2サポートオペレータとコントレイント参照V2.5.0、374および384ページそれぞれ。 中国語は中国語版に続いています。英語、ロシア語、ドイツ語は英語版に従います。 プラットフォームの制約は分離されず、 英語PDF自体には中国語I/O図と出力テーブルが含まれており、その実証は編集可能なローカライズされたテーブルで保持されます。 ConvTranpose や元の LSTM/GRU などのソースのスペルが保存されます。これらの式は SDK 実装に修正されません。

ソースページ:CN 317-324;EN 326–334。

RockchipRKNN2

オペレータ参照シリーズ

RKNN2 V2.5.0・RK3566/RK3568:基本と進化

RKNN2 V2.5.0・RK3566/RK3568:再発ネットワーク、算術およびプール

RKNN2 V2.5.0・RK3566/RK3568:形状、スライシング、トランスポーズ

RKNN2 V2.5.0・RK3566/RK3568:活性化、正規化、拡張機能

RKNN2 V2.5.0・RK3588:基本と進化

RKNN2 V2.5.0・RK3588:再発ネットワーク、算術およびプール

RKNN2 V2.5.0・RK3588:形状、スライシング、トランスポーズ

RKNN2 V2.5.0・RK3588:アクティベーション、正規化、拡張機能

RKNN2 V2.5.0・RK3562:基本と進化

RKNN2 V2.5.0・RK3562:再発ネットワーク、算術およびプール

RKNN2 V2.5.0・RK3562:形状、スライシング、トランスポーズ

RKNN2 V2.5.0・RK3562:アクティベーション、正規化、拡張機能

RKNN2 V2.5.0・RV1103/RV1106:基本と進化

RKNN2 V2.5.0・RV1103/RV1106:再発ネットワーク、算術およびプール

RKNN2 V2.5.0・RV1103/RV1106:形状、スライシング、トランスポーズ

RKNN2 V2.5.0・RV1103/RV1106:活性化、正規化、拡張機能

RKNN2 V2.5.0・RK3576/RV1126B:基本と進化

RKNN2 V2.5.0・RK3576/RV1126B:再発ネットワーク、算術およびプール

RKNN2 V2.5.0・RK3576/RV1126B:形状、スライシング、トランスポーズ

RKNN2 V2.5.0・RK3576/RV1126B:活性化、正規化、拡張機能

RKNN2 V2.5.0・RK2118:基本と進化

RKNN2 V2.5.0・RK2118:再発ネットワーク、算術およびプール

RKNN2 V2.5.0・RK2118:形状、スライシング、トランスポーズ

RKNN2 V2.5.0・RK2118:アクティベーション、正規化、拡張機能

RKNN2 V2.5.0・RV1103B/RV1106B:基本と進化**

RKNN2 V2.5.0・RV1103B/RV1106B:再発ネットワーク、算術およびプール

RKNN2 V2.5.0・RV1103B/RV1106B:形状、スライシング、トランスポーズ

RKNN2 V2.5.0・RV1103B/RV1106B:活性化、正規化、拡張機能

RKNN2 V2.5.0・CPU オペレータサポートと制約

RKNN2 V2.5.0・GPU オペレータサポートと制約

RKNN2 V2.5.0・モデルI/O、アライメント、コンボリューション制限

RV1103B/RV1106B

追加

要素指向のバイナリー追加(C=A+B)を実行し、多方向性NumPyスタイルの放送をサポート

導入事例

  • A:T1,T2
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer
    • Broadcasting support
      • Supports broadcasting along arbitrary dimensions
      • Broadcasting constraints are the same as the Expand operator
  • B:T1,T2
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer
    • Broadcasting support
      • Supports broadcasting along arbitrary dimensions
      • Broadcasting constraints are the same as the Expand operator

出力

  • C:T1
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

データ型制約

  • T1:int8(センサー)
  • T2:float(constTensor)

AddRelu

溶融コンピュテーション、C=Relu(A+B)を追加およびRelu

導入事例

  • 同じように追加

出力

  • 同じように追加

その他のサポート

  • 多中心: 支えられる

バッチノーマライズ

https://arxiv.org/abs/1502.03167の記述に従って入力テンソルのバッチ正規化を実行します

導入事例

  • 入力:T1
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

出力

  • 出力:T1
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

データ型制約

  • T1:int8(センサー)

属性

  • epsilon: フロート (デフォルト値 = 1e-5)
    • A real number added when dividing by the standard deviation to prevent division by 0
    • epsilon∈(0,∞]
  • モーメント:フロート
    • Sliding average parameters during training

連結

軸で指定した軸に沿ってベクトルを1つのベクトルに連結します。 軸寸法以外のベクトルは同じサイズでなければなりません

導入事例

  • 入出力_tensor:T
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

出力

  • 出力:T
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

データ型制約

  • T:int8(センサー)

属性

  • axisint64の特長
    • axis∈{0,1,2,3}

コンセプト

コンセプト

導入事例

  • 入出力_tensor:T1
    • shape:[batch,channel,height,width]
      • width: when dilated_kernel_h>1, width<16383. In addition, the first-layer input width is restricted; see the model input description for details.
    • Quantization support
      • per-layer
  • 体重:T1
    • shape:[output_channel,input_channel,kernel_h,kernel_w]
      • kernel_h∈[1,31]
      • kernel_w∈[1,31]
    • Quantization support
      • per-layer
      • per-channel

出力

  • 出力:T1
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

属性

  • strides:int(strides_h,strides_w) の文字列を生成します。
    • stride_h∈[1,7]
    • stride_w∈[1,7]
  • パッド:int(pads_top、pads_left、pads_bottom、pads_right)
    • pads_top∈[0,15]
    • pads_left∈[0,15]
    • pads_bottom∈[0,15]
    • pads_right∈[0,15]
  • グループ:int
  • 関係:int(dilations_h、dilations_w)
    • dilations_h∈[1,31]
    • dilations_w∈[1,31]

データ型制約

  • T1:int8(センサー)

奥深さのコンボリューション

深さ方向分離可能な汚染

導入事例

  • 入出力_tensor:T1
    • shape:[batch,channel,height,width]
      • width: when dilated_kernel_h>1, width<16383. In addition, the first-layer input width is restricted; see the model input description for details.
    • Quantization support
      • per-layer
  • 体重:T1
    • shape:[output_channel,input_channel,kernel_h,kernel_w]
      • kernel_h∈[1,8]
      • kernel_w∈[1,8]
    • Quantization support
      • per-layer
      • per-channel

出力

  • 出力:T1
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

属性

  • strides:int(strides_h,strides_w) の文字列を生成します。
    • stride_h∈[1,7]
    • stride_w∈[1,7]
  • パッド:int(pads_top、pads_left、pads_bottom、pads_right)
    • pads_top∈[0,15]
    • pads_left∈[0,15]
    • pads_bottom∈[0,15]
    • pads_right∈[0,15]
  • グループ:int
  • 関係:int(dilations_h、dilations_w)
    • dilations_h∈[1,32]
    • dilations_w∈[1,32]

データ型制約

  • T1:int8(センサー)

進化のRelu

結束および溶融混入、Output=Relu(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

コントロールクリップ

結束およびクリップ溶融計算、Output=Clip(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

進化PRelu/LeakyRelu

結束およびPRelu/LeakyReluの溶断された計算、出力=PRelu (Conv(Input)))または出力=LeakyRelu(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

進化追加

関与し、溶断された計算を追加, output=Add(Conv(Input0),Input1). 説明と仕様制約は、Convolutionと同じです

進化シグマイド

結束およびシグマイド溶断計算、Output=Sigmoid (Conv(Input))。 説明と仕様制約は、Convolutionと同じです

導入事例

結束およびタン溶融計算、Output=Tanh(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

進化ソフトプラス

結束およびSoftplusの溶断された計算、Output=Softplus (Conv (入力))。 説明と仕様制約は、Convolutionと同じです

進化ハードシグマイド

結束およびハードシグマイド溶断計算、Output=HardSigmoid(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

進化ハードスウェーデン

結束およびハードスウェーデンの溶断計算、Output=HardSwish(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

進化する

結束および溶溶溶溶溶融計算、Output=Elu(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

簡体中文

結束およびスウェーデンの溶断計算、Output=Swish(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

コンセプト

関与と混同の融合計算、Output=Mish(Conv(Input))。 説明と仕様制約は、Convolutionと同じです

トランスポーズ

トランスポーズの関与

導入事例

  • 入出力_tensor:T1
    • shape:[batch,channel,height,width]
      • width: when dilated_kernel_h>1, width<16383. In addition, the first-layer input width is restricted; see the model input description for details.
  • 定量化サポート
    • per-layer
  • 体重:T1
    • shape:[output_channel,input_channel,kernel_h,kernel_w]
      • kernel_h∈[1,31]
      • kernel_w∈[1,31]
    • Quantization support
      • per-layer
      • per-channel

出力

  • 出力:T1
    • shape:[batch,channel,height,width]
    • Quantization support
      • per-layer

属性

  • strides:int(strides_h,strides_w) の文字列を生成します。
    • stride_h∈[1,8]
    • stride_w∈[1,8]
  • パッド:int(pads_top,pads_left,pads_bottom,pads_right) 設定時に注意: カーネル_hdilations_h-dilations_h-pads_top<0 はサポートされていません; kernel_wdilations_w- dilations_w-pads_left<0 はサポートされていません。 stride_h(height-1)-pads_top+1<output_h はサポートされていません。 stride_w(width-1)-pads_left+1<output_w はサポートされていません
    • pads_top∈[0,15]
    • pads_left∈[0,15]
    • pads_bottom∈[0,15]
    • pads_right∈[0,15]
  • グループ:int
    • group: only 1 is supported; num_output is supported if and only if num_input=num_output
  • 関係:int(dilations_h、dilations_w)
    • dilations_h∈[1,32]
    • dilations_w∈[1,32]
    • When dilation is not equal to (1,1), only kernel=(1,1) is supported

データ型制約

  • T1:int8(センサー)

コーントランポーズRelu

ConvTranspose と Relu の溶断計算、Output=Relu(ConvTranspose(Input))。 説明と仕様制約は、ConvTransposeと同じです

コンヴトランポーズクリップ

ConvTranspose とクリップの溶断計算、Output=Clip(ConvTranspose(Input))。 説明と仕様制約は、ConvTransposeと同じです

ConvTranposePRelu/LeakyRelu の特長

ConvTranspose と PRelu/LeakyRelu は、コンプリート(ConvTranspose(Input))、または output= LeakyRelu(ConvTranspose(Input)) の計算を溶かしました。 説明と仕様制約は、ConvTransposeと同じです

このトピックを詳しく見る → · 学習ガイド →