tensorflow:: عملیات:: DepthwiseConv2dNative

#include <nn_ops.h>

Computes a 2-D depthwise convolution given 4-D input and filter tensors.

خلاصه

با توجه به یک تانسور ورودی با شکل [batch, in_height, in_width, in_channels] و یک تانسور فیلتر/هسته با شکل [filter_height, filter_width, in_channels, channel_multiplier] که شامل فیلترهای کانولوشنی in_channels با عمق ۱ است، depthwise_conv2d فیلتر متفاوتی را به هر کانال ورودی اعمال می‌کند (که از ۱ کانال به کانال‌های channel_multiplier برای هر کدام گسترش می‌یابد)، سپس نتایج را با هم ترکیب می‌کند. بنابراین، خروجی دارای کانال‌های in_channels * channel_multiplier است.

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]

Must have strides[0] = strides[3] = 1 . For the most common case of the same horizontal and vertices strides, strides = [1, stride, stride, 1] .

استدلال‌ها:

  • دامنه: یک شیء دامنه
  • strides: 1-D of length 4. The stride of the sliding window for each dimension of input .
  • padding: نوع الگوریتم padding مورد استفاده.

ویژگی‌های اختیاری (به Attrs مراجعه کنید):

  • data_format: قالب داده ورودی و خروجی را مشخص کنید. با قالب پیش‌فرض "NHWC"، داده‌ها به ترتیب زیر ذخیره می‌شوند: [batch, height, width, channels]. به طور جایگزین، قالب می‌تواند "NCHW" باشد، که ترتیب ذخیره‌سازی داده‌ها به صورت [batch, channels, height, width] است.
  • اتساع‌ها: تانسور یک بعدی با طول ۴. ضریب اتساع برای هر بُعد input . اگر روی k > ۱ تنظیم شود، بین هر عنصر فیلتر در آن بُعد، k-1 سلول پرش‌شده وجود خواهد داشت. ترتیب بُعد با مقدار data_format تعیین می‌شود، برای جزئیات بیشتر به بالا مراجعه کنید. اتساع‌ها در بُعدهای دسته‌ای و عمقی باید ۱ باشند.

بازده:

  • Output : تانسور خروجی.

سازنده‌ها و مخرب‌ها

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)

ویژگی‌های عمومی

operation
output

کارکردهای عمومی

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

توابع استاتیک عمومی

DataFormat (StringPiece x)
Dilations (const gtl::ArraySlice< int > & x)

ساختارها

tensorflow:: عملیات:: DepthwiseConv2dNative:: جذابیت‌ها

Optional attribute setters for DepthwiseConv2dNative .

ویژگی‌های عمومی

عملیات

Operation operation

خروجی

::tensorflow::Output output

کارکردهای عمومی

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
)

گره

::tensorflow::Node * node() const 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

قالب داده

Attrs DataFormat(
  StringPiece x
)

اتساعات

Attrs Dilations(
  const gtl::ArraySlice< int > & x
)