Cette référence de plate-forme RKNN2 V2.5.0 aide les développeurs ArmSoM à sélectionner et adapter les modèles. Il n’établit pas de support sur chaque carte ArmSoM: vérifier la carte SoC, Toolkit2, Runtime, pilote NPU et versions BSP. La source ne spécifie aucune version universelle du noyau Linux. Aucune validation matérielle ArmSoM n’a été effectuée.
Source: RKNN2 chinois et anglais, respectivement, pour les opérateurs et les contraintes. Le chinois suit l’édition chinoise; l’anglais, le russe et l’allemand suivent l’édition anglaise. Les contraintes liées à la plate-forme demeurent distinctes. Le PDF anglais contient des chiffres d’entrées-sorties et des tableaux de sortie chinois; leur provenance est conservée avec des tableaux localisés modifiables. Les orthographes sources comme ConvTranpose et les équations LSTM/GRU originales sont conservées; ces équations ne sont pas des corrections aux implémentations SDK.
Pages sources: CN 30–48; EN 32–50.
Série de référence de l'opérateur
RKNN2 V2.5.0 · RK3566/RK3568: Bases et convolution
RKNN2 V2.5.0 · RK3566/RK3568:Réseaux courants, arithmétiques et mise en commun
RKNN2 V2.5.0 · RK3566/RK3568: Formes, slices et transposes
RKNN2 V2.5.0 · RK3566/RK3568:Activités, normalisation et extensions
RKNN2 V2.5.0 · RK3588: Bases et convolution
RKNN2 V2.5.0 · RK3588:Réseaux renouvelables, arithmétiques et mise en commun
RKNN2 V2.5.0 · RK3588: Formes, slices et transposes
RKNN2 V2.5.0 · RK3588:Activités, normalisation et extensions
RKNN2 V2.5.0 · RK3562: Bases et convolution
RKNN2 V2.5.0 · RK3562:Réseaux renouvelables, arithmétiques et mise en commun
RKNN2 V2.5.0 · RK3562: Formes, slices et transposes
RKNN2 V2.5.0 · RK3562:Activités, normalisation et extensions
RKNN2 V2.5.0 · RV1103/RV1106: Bases et convolution
RKNN2 V2.5.0 · RV1103/RV1106:Réseaux renouvelables, arithmétiques et mise en commun
RKNN2 V2.5.0 · RV1103/RV1106: Formes, slices et transposes
RKNN2 V2.5.0 · RV1103/RV1106:Activités, normalisation et extensions
RKNN2 V2.5.0 · RK3576/RV1126B: Bases et convolution
RKNN2 V2.5.0 · RK3576/RV1126B:Réseaux renouvelables, arithmétiques et mise en commun
RKNN2 V2.5.0 · RK3576/RV1126B: Formes, slices et transposes
RKNN2 V2.5.0 · RK3576/RV1126B:Activités, normalisation et extensions
RKNN2 V2.5.0 · RK2118: Bases et convolution
RKNN2 V2.5.0 · RK2118:Réseaux renouvelables, arithmétiques et mise en commun
RKNN2 V2.5.0 · RK2118: Formes, slices et transposes
RKNN2 V2.5.0 · RK2118:Activités, normalisation et extensions
RKNN2 V2.5.0 · RV1103B/RV1106B: Bases et convolution
RKNN2 V2.5.0 · RV1103B/RV1106B:Réseaux renouvelables, arithmétiques et mise en commun
RKNN2 V2.5.0 · RV1103B/RV1106B: Formes, slices et transposes
RKNN2 V2.5.0 · RV1103B/RV1106B:Activités, normalisation et extensions
RKNN2 V2.5.0 · Prise en charge et contraintes de l’opérateur CPU
RKNN2 V2.5.0 · Support et contraintes de l’opérateur GPU
RKNN2 V2.5.0 · Modèle I/O, limites d’alignement et de convolution
Div
Effectue la division binaire par élément (C=A/B), supportant la radiodiffusion multidirectionnelle de style NumPy
Entrées
- 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
Produits
- C:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
Type de données Contraintes
- T1:float16(Teneur)
- T2: flocons(constTensor)
Élargir
Diffusion de la tenseur d’entrée selon la forme et les règles de radiodiffusion données. La règle de radiodiffusion est similaire à numpy.array(input) * numpy.ones(shape): les dimensions sont alignées à droite; deux dimensions correspondantes doivent avoir la même valeur, ou l’une d’elles est égale à 1
Entrées
- entrée:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
- forme:T2
- shape:[batch,channel,height,width]
Produits
- sortie:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:int64(Teneur)
Contraintes en matière de radiodiffusion
- [b,c,1,w]->[b,c,h,w],h∈[1,8192]
- [b,1,1,w]->[b,c,h,w],h∈[1,8192]
- [b,c,h,1]->[b,c,h,w],w ∈[1,8192]
- [b,1,h,1]->[b,c,h,w],w ∈[1,8192]
- [b,c,1,1]->[b,c,h,w],h∈[1,8192],w ∈[1,8192]
GRU
Unité de courant à glissière (GRU). Les extensions et variantes GRU sont nommées opérateurs exGRU. Les paramètres marqués (externes) sont des paramètres exclusifs à exGRU. Les formules de calcul sont les suivantes :
Equations(Default:f=Sigmoid,g=Tanh):
r_t = f(x_t · W_r + h_{t−1} · R_r + Wb_r + Rb_r)
z_t = f(x_t · W_z + h_{t−1} · R_z + Wb_z + Rb_z)
h_t = g(x_t · W_h + (r_t ⊙ h_{t−1}) · R_h + Rb_h + Wb_h), (WRB=0)
h_t = g(x_t · W_h + r_t ⊙ (h_{t−1} · R_h + Rb_h)) + Wb_h, (WRB=1)
H_t = (1 − z_t) ⊙ h_t + z_t ⊙ h_{t−1}
Entrées
- X:T1
- shape:[seq_length,batch_size,input_size]
- seqlength∈(0,8192]
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- inputsize∈(0,8192]
- Quantization support
- per-layer
- shape:[seq_length,batch_size,input_size]
- W:T1
- shape:[num_directions,4*hidden_size,input_size]
- inputsize∈(0,8192]
- hiddensize∈(0,8192]
- numdirections:1or2
- Quantization support
- per-layer
- per-channel
- shape:[num_directions,4*hidden_size,input_size]
- R:T1
- shape:[num_directions,4*hidden_size,hidden_size]
- hiddensize∈(0,8192]
- numdirections:1or2
- Quantization support
- per-layer
- per-channel
- shape:[num_directions,4*hidden_size,hidden_size]
- B:T2
- shape:[num_directions,8*hidden_size]
- hiddensize∈(0,8192]
- numdirections:1or2
- Quantization support
- per-layer
- per-channel
- shape:[num_directions,8*hidden_size]
- séquence_lens:T3(facultatif)
- shape:[batch_size]
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- shape:[batch_size]
- initiale_h:T1(facultatif)
- shape:[num_directions,batch_size,hidden_size]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[num_directions,batch_size,hidden_size]
Produits
- Y:T1
- shape:[seq_length,num_directions,batch_size,hidden_size]
- seqlength∈(0,8192]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[seq_length,num_directions,batch_size,hidden_size]
- Y_h:T1(facultatif)
- shape:[num_directions,batch_size,hidden_size]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[num_directions,batch_size,hidden_size]
Attributs
- linéaire_avant_reset:int
- The selection of the LBR variant: 1(T) or 0(F)
- direction(externe):chaîne
- Specifies the computation direction of the GRU
- forward: specifies the computation direction of the GRU as forward
- reverse: specifies the computation direction of the GRU as reverse
- bidirectional: specifies the computation direction of the GRU as bidirectional
- séquency_size(extern):int
- The seqsize of the GRU input, no limitation, 4-alignment recommended
- cached_size(extern):int
- The hiddensize in the GRU cell, no limitation, 8-alignment recommended
- input_layout(extern):int
- Specifies the layout consistent with the meaning of the corresponding input shape
- Requires filling in the specified layout, and also requires filling in the batch_size, sequence_size, hidden_size。
- snc: specifies the input shape corresponding to the layout as [seqs,batches,input_size]
- (sn)c: specifies the input shape corresponding to the layout as [seqs*batches,input_size,1,1]
- sortie_layout(extern):int
- Specifies the layout consistent with the meaning of the corresponding output shape
- Requires filling in the specified layout, and also requires filling in the batch_size, sequence_size, hidden_size、directions。
- sbnc: specifies the output shape corresponding to the layout as [seqs,directions,batches,hidden_size]
- (sn)c: specifies the output shape corresponding to the layout as [seqsbatches,directionsinput_size,1,1]
Type de données Contraintes
- T1:float16(Teneur)
- T2:flux(Teneur)
- T3:Flotte (Écalier)
Autres services d ‘ appui
- Multi-core : Pas encore pris en charge
Rassemblement
Recueille les entrées de la dimension d’axe spécifiée de l’entrée X selon les indices, et les concaténe ensemble.
Entrées
- X:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
- Indices:T2
- The indices of the elements to gather, rank = 1
Produits
- Y:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:int(Teneur)
Attributs
- axe:int(Teneur)
- axis∈{0,1,2,3}
- Specifies the dimension from which Indices obtains the input
Autres services d ‘ appui
- Multi-core : Pas encore pris en charge
LSTM
Mémoire à court terme (LSTM). Les extensions et variantes LSTM sont nommées opérateurs exLSTM. Les paramètres marqués (externes) sont des paramètres exclusifs à exLSTM. Les formules de calcul sont les suivantes :
Equations(Default:f=Sigmoid,g=Tanh,h=Tanh):
i_t = f(x_t · W_i + h_{t−1} · R_i + Wb_i + Rb_i)
f_t = f(x_t · W_f + h_{t−1} · R_f + Wb_f + Rb_f)
c_t = f(x_t · W_c + h_{t−1} · R_c + Wb_c + Rb_c)
o_t = f(x_t · W_o + h_{t−1} · R_o + Wb_o + Rb_o)
C_t = f_t ⊙ C_{t−1} + i_t ⊙ c_t
h_t = o_t ⊙ h(C_t)
Entrées
- X:T1
- shape:[seq_length,batch_size,input_size]
- seqlength∈(0,8192]
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- inputsize∈(0,8192]
- Quantization support
- per-layer
- shape:[seq_length,batch_size,input_size]
- W:T1
- shape:[num_directions,4*hidden_size,input_size]
- inputsize∈(0,8192]
- hiddensize∈(0,8192]
- numdirections:1or2
- Quantization support
- per-layer
- per-channel
- shape:[num_directions,4*hidden_size,input_size]
- R:T1
- shape:[num_directions,4*hidden_size,hidden_size]
- hiddensize∈(0,8192]
- numdirections:1or2
- Quantization support
- per-layer
- per-channel
- shape:[num_directions,4*hidden_size,hidden_size]
- B:T2,T3
- shape:[num_directions,8*hidden_size]
- hiddensize∈(0,8192]
- numdirections:1or2
- Quantization support
- per-layer
- per-channel
- shape:[num_directions,8*hidden_size]
- séquence_lens:T4,T5(facultatif)
- shape:[batch_size]
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- shape:[batch_size]
- initiale_h:T1(facultatif)
- shape:[num_directions,batch_size,hidden_size]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[num_directions,batch_size,hidden_size]
- initiale_c:T1(facultatif)
- shape:[num_directions,batch_size,hidden_size]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[num_directions,batch_size,hidden_size]
Produits
- Y:T1
- shape:[seq_length,num_directions,batch_size,hidden_size]
- seqlength∈(0,8192]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[seq_length,num_directions,batch_size,hidden_size]
- Y_h:T1(facultatif)
- shape:[num_directions,batch_size,hidden_size]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[num_directions,batch_size,hidden_size]
- Y_c:T1(facultatif)
- shape:[num_directions,batch_size,hidden_size]
- numdirections:1or2
- batchsize∈(0,8192], when greater than 1, only multiples of 4 are supported
- hiddensize∈(0,8192]
- Quantization support
- per-layer
- shape:[num_directions,batch_size,hidden_size]
Attributs
- direction(externe):chaîne
- Specifies the computation direction of the LSTM
- forward: specifies the computation direction of the LSTM as forward
- reverse: specifies the computation direction of the LSTM as reverse
- bidirectional: specifies the computation direction of the LSTM as bidirectional
- séquency_size(extern):int
- The seqsize of the LSTM input, no limitation, 4-alignment recommended
- cached_size(extern):int
- The hiddensize in the LSTM cell, no limitation, 8-alignment recommended
- proj_size(extern):int
- The proj_size for projection, projsize∈[0,hiddensize]
- Currently limited to 0, i.e. projection is not yet supported
- input_forget(extern):int
- cifgvariant selection: 1(T) or 0(F), currently limited to 0, i.e. not yet supported
- a_projection(externe):int
- projection variant: 1(T) or 0(F), currently limited to 0, i.e. not yet supported
- input_layout(extern):int
- Specifies the layout consistent with the meaning of the corresponding input shape
- Requires filling in the specified layout, and also requires filling in the batch_size, sequence_size, hidden_size。
- snc: specifies the input shape corresponding to the layout as [seqs,batches,input_size]
- (sn)c: specifies the input shape corresponding to the layout as [seqs*batches,input_size,1,1]
- sortie_layout(extern):int
- Specifies the layout consistent with the meaning of the corresponding output shape
- Requires filling in the specified layout, and also requires filling in the batch_size, sequence_size, hidden_size、directions。
- sbnc: specifies the output shape corresponding to the layout as [seqs,directions,batches,hidden_size]
- (sn)c: specifies the output shape corresponding to the layout as [seqsbatches,directionsinput_size,1,1]
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:flux(Teneur)
- T3:int32(Teneur)
- T4: flocons (Écaliers)
- T5:int(Écalier)
Autres services d ‘ appui
- Multi-core : Pas encore pris en charge
Max.
Calcule la valeur maximale par élément du tenseur d’entrée
Entrées
- A:T1
- 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
- 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
Produits
- C:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer/per-channel
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
Autres services d ‘ appui
- Multi-core : Pas encore pris en charge
Min.
Calcule la valeur minimale par élément du tenseur d’entrée
Entrées
- A:T1
- 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
- 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
Produits
- C:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer/per-channel
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
Autres services d ‘ appui
- Multi-core : Pas encore pris en charge
Mousse
Effectue la multiplication binaire par élément (C=A*B), supportant la diffusion multidirectionnelle de style NumPy
Entrées
- 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
Produits
- C:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2: flocons(constTensor)
MulRelu
La description restante est la même que Mul
- Types de données supportés : Même que Mul
Pad
Étant donné un tenseur (données) contenant les données à ajouter, un tenseur (pads) contenant les valeurs de début et de fin de rembourrage pour chaque axe, un mode (mode) et une valeur constante (valeur constante), générer un tenseur (sortie) ajouté
Entrées
- données:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
- les coussinets:T2
- shape : [batch_begin, channel_begin, height_begin, width_begin, batch_end, channel_end,height_end,width_end]
- valeur constante_(facultative):T3
- shape:[1]
- Quantization support
- per-layer
Produits
- sortie:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:int64(Teneur)
- T3:float(Scalar),int8(Scalar),float16(Scalar)
Attributs
- mode : chaîne (constante de valeur par défaut)
- Supported modes: constant, reflect
- constantNo limitation
- reflectchannel∈(0,8192],height∈(0,8192],width∈(0,8176]
- Supported modes: constant, reflect
Autres services d ‘ appui
- Multi-core : Pas encore pris en charge
MaxPool
MaxPool consomme un tenseur X d’entrée et applique le tenseur max en fonction de la taille du noyau, de la taille des brins et de la longueur du rembourrage. Le regroupement maximal consiste à calculer le maximum sur toutes les valeurs d’un sous-ensemble de tenseur d’entrée en fonction de la taille du noyau, et à réduire l’échantillonnage des données en tensor Y de sortie pour un traitement ultérieur. Le calcul de la forme spatiale de sortie diffère selon que le rembourrage explicite (lorsqu’on utilise des rembourrages) ou automatique (lorsqu’on utilise auto_pad) est utilisé. Seul un rembourrage explicite est utilisé
Entrées
- entrée:T1
- shape:[batch,channel,height,width]
- channel∈(0,8192]
- height∈(0,8192]
- width∈(0,8192]
- shape:[batch,channel,height,width]
Produits
- sortie:T1
- shape:[batch,channel,height,width]
Attributs
- kernel_shape:int64(kernel_h,kernel_w)
- kernel_h∈(0,7]
- kernel_w∈(0,7]
- auto_pad:string
- Padding mode: only NOTSET is supported
- Ceil_mode:int64
- Whether to use ceil or floor to compute the output shape: not supported
- Les étapes:int64(strides_h,strides_w)
- strides_h∈(0,8]
- strides_w∈(0,8]
- count_include_pad:int64[]
- count_include_pad, whether to include pad values in computation: 1
- (pad):int64(pad_top,pad_left,pad_bottom,pad_right)
- pad_top∈[0,7]
- pad_left∈[0,7]
- pad_bottom∈[0,7]
- pad_right∈[0,7]
- entreposage_commande:int64
- The preferred storage mode: 0
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:flux(Teneur)
- T3:Flotte (Écalier)
GlobalMaxPool
GlobalMaxPool consomme un tenseur d’entrée X et applique le cumul max sur les valeurs dans le même canal. Ceci est équivalent à un MaxPool avec noyau_forme égale aux dimensions spatiales de l’entrée.
Entrées
- entrée:T1
- shape:[batch,channel,height,width]
- channel∈(0,8192]
- height∈(1,7]
- width∈(1,7]
- shape:[batch,channel,height,width]
Produits
- sortie:T1
- shape:[batch,channel,height,width]
Attributs
- kernel_shape:int64(kernel_h,kernel_w)
- kernel_h∈(0,7]
- kernel_w∈(0,7]
- auto_pad:string
- Padding mode: only NOTSET is supported
- Ceil_mode:int64
- Whether to use ceil or floor to compute the output shape: not supported
- Les étapes:int64(strides_h,strides_w)
- strides_h∈(0,8]
- strides_w∈(0,8]
- count_include_pad:int64[]
- count_include_pad, whether to include pad values in computation: 1
- (pad):int64(pad_top,pad_left,pad_bottom,pad_right)
- pad_top∈[0,7]
- pad_left∈[0,7]
- pad_bottom∈[0,7]
- pad_right∈[0,7]
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:flux(Teneur)
- T3:Flotte (Écalier)
Pois moyen
La PoolMoyenne consomme un tenseur d’entrée X et applique le pooling moyen au tenseur en fonction de la taille du noyau, de la taille des brins et de la longueur du rembourrage. La mise en commun moyenne consiste à calculer la moyenne sur toutes les valeurs d’un sous-ensemble de tenseur d’entrée en fonction de la taille du noyau, et à réduire l’échantillonnage des données en tenseur de sortie Y pour un traitement ultérieur. Le calcul de la forme spatiale de sortie diffère selon que le rembourrage explicite (lorsqu’on utilise des rembourrages) ou automatique (lorsqu’on utilise auto_pad) est utilisé. Seul un rembourrage explicite est utilisé
Entrées
- entrée:T1
- shape:[batch,channel,height,width]
- channel∈(0,8192]
- height∈(0,8192]
- width∈(0,8192]
- shape:[batch,channel,height,width]
Produits
- sortie:T1
- shape:[batch,channel,height,width]
Attributs
- kernel_shape:int64(kernel_h,kernel_w)
- kernel_h∈(0,7]
- kernel_w∈(0,7]
- auto_pad:string
- Padding mode: only NOTSET is supported
- Ceil_mode:int64
- Whether to use ceil or floor to compute the output shape: not supported
- Les étapes:int64(strides_h,strides_w)
- strides_h∈(0,8]
- strides_w∈(0,8]
- count_include_pad:int64[]
- count_include_pad, whether to include pad values in computation: 1
- (pad):int64(pad_top,pad_left,pad_bottom,pad_right)
- pad_top∈[0,7]
- pad_left∈[0,7]
- pad_bottom∈[0,7]
- pad_right∈[0,7]
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:flux(Teneur)
- T3:Flotte (Écalier)
GlobalA moyennePool
GlobalA moyennePool consomme un tenseur d’entrée X et applique le pooling moyen sur les valeurs dans le même canal. Ceci est équivalent à un MediumPool avec noyau_forme égale aux dimensions spatiales du tenseur d’entrée.
Entrées
- entrée:T1
- shape:[batch,channel,height,width]
- channel∈(0,8192]
- height∈(0,7]
- width∈(0,7]
- shape:[batch,channel,height,width]
Produits
- sortie:T1
- shape:[batch,channel,height,width]
Attributs
- kernel_shape:int64(kernel_h,kernel_w)
- kernel_h∈(0,7]
- kernel_w∈(0,7]
- auto_pad:string
- Padding mode: only NOTSET is supported
- Ceil_mode:int64
- Whether to use ceil or floor to compute the output shape: not supported
- Les étapes:int64(strides_h,strides_w)
- strides_h∈(0,8]
- strides_w∈(0,8]
- count_include_pad:int64[]
- count_include_pad, whether to include pad values in computation: 1
- (pad):int64(pad_top,pad_left,pad_bottom,pad_right)
- pad_top∈[0,7]
- pad_left∈[0,7]
- pad_bottom∈[0,7]
- pad_right∈[0,7]
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:flux(Teneur)
- T3:Flotte (Écalier)
Pow
Z = opération d’exposentiation X^Y, en prenant les données d’entrée (tenseur) et les exposants, et en produisant une donnée de sortie (tenseur)
Entrées
- X:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
- Y:T2
- shape:[1]
- Currently only 0, 1, 2, 3, 0.5, -0.5 are supported
- shape:[1]
Produits
- Z:T1
- shape:[batch,channel,height,width]
- Quantization support
- per-layer
Type de données Contraintes
- T1:int8(Tensor), flocons16(Tensor)
- T2:int8(Tensor),int32(Tensor),int64(Tensor),float16(Tensor),float(Tensor)
Autres services d ‘ appui
- Multi-core : Pas encore pris en charge
