tensorflow::ops::DepthwiseConv2dNative
#include <nn_ops.h> Verilen 4 boyutlu input ve filter tensörleri için 2 boyutlu derinlemesine evrişimi hesaplar.
Özet
[batch, in_height, in_width, in_channels] şeklinde bir giriş tensörü ve [filter_height, filter_width, in_channels, channel_multiplier] şeklinde, in_channels sayısı kadar 1 derinliğinde evrişimsel filtre içeren bir filtre/çekirdek tensörü verildiğinde, depthwise_conv2d her giriş kanalına farklı bir filtre uygular (her biri için 1 kanaldan channel_multiplier kanala kadar genişletir) ve ardından sonuçları birleştirir. Böylece, çıktı in_channels * channel_multiplier kanala sahip olur.
for k in 0..in_channels-1
for q in 0..channel_multiplier-1
output[b, i, j, k * channel_multiplier + q] =
sum_{di, dj} input[b, strides[1] * i + di, strides[2] * j + dj, k] *
filter[di, dj, k, q] strides[0] = strides[3] = 1 olmalıdır. Yatay ve köşe adımlarının aynı olduğu en yaygın durumda, strides = [1, stride, stride, 1] .
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- Adımlar: 4 uzunluğunda 1 boyutlu.
inputher boyutu için kayan pencerenin adımı. - dolgu: Kullanılacak dolgu algoritmasının türü.
İsteğe bağlı özellikler (bkz. Attrs ):
- data_format: Giriş ve çıkış verilerinin veri biçimini belirtin. Varsayılan "NHWC" biçimiyle veriler şu sırayla saklanır: [parti, yükseklik, genişlik, kanallar]. Alternatif olarak, biçim "NCHW" olabilir; bu durumda veri saklama sırası şu şekildedir: [parti, kanallar, yükseklik, genişlik].
- Genişletmeler: 4 uzunluğunda 1 boyutlu tensör.
inputher boyutu için genişletme faktörü. k > 1 olarak ayarlanırsa, o boyuttaki her filtre elemanı arasında k-1 hücre atlanacaktır. Boyut sırası,data_formatdeğerine göre belirlenir, ayrıntılar için yukarıya bakın. Toplu işlem ve derinlik boyutlarındaki genişletmeler 1 olmalıdır.
İadeler:
-
Output: Çıktı tensörü.
Yapıcılar ve Yıkıcılar | |
|---|---|
DepthwiseConv2dNative (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
DepthwiseConv2dNative (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding, const DepthwiseConv2dNative::Attrs & attrs) |
Genel özellikler | |
|---|---|
operation | |
output | |
Kamusal işlevler | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Herkese açık statik fonksiyonlar | |
|---|---|
DataFormat (StringPiece x) | |
Dilations (const gtl::ArraySlice< int > & x) | |
Yapılar | |
|---|---|
| tensorflow::ops::DepthwiseConv2dNative::Attrs | DepthwiseConv2dNative için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
DepthwiseConv2dNative
DepthwiseConv2dNative( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding )
DepthwiseConv2dNative
DepthwiseConv2dNative( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding, const DepthwiseConv2dNative::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Herkese açık statik fonksiyonlar
Veri Biçimi
Attrs DataFormat( StringPiece x )
Genişlemeler
Attrs Dilations( const gtl::ArraySlice< int > & x )