Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::ExtractImagePatches

#include <array_ops.h>

Извлечь patches из images и поместить их в измерение «глубина».

Summary

Arguments:

  • scope: An object Scope
  • images: 4-мерный Tensor с формой [batch, in_rows, in_cols, depth].
  • ksizes: Размер скользящего окна для каждого измерения images.
  • strides: Расстояние между центрами двух последовательных областей в изображениях. Должно быть: [1, stride_rows, stride_cols, 1].
  • rates: Должно быть: [1, rate_rows, rate_cols, 1]. Это шаг входных данных, определяющий расстояние между двумя последовательными образцами области во входных данных. Эквивалентно извлечению областей с patch_sizes_eff = patch_sizes + (patch_sizes - 1) * (rates - 1), за которым следует пространственное подвыборка с коэффициентом rates. Это эквивалентно rate в дилатационных (также известных как атроповых) свёртках.
  • padding: Тип алгоритма заполнения.

Returns:

  • Output: 4-мерный Tensor с формой [batch, out_rows, out_cols, ksize_rows * ksize_cols * depth], содержащий области изображения размером ksize_rows x ksize_cols x depth векторно в измерении «глубина». Обратите внимание, что out_rows и out_cols — это измерения выходных областей.
Конструкторы и деструкторы
ExtractImagePatches(const ::tensorflow::Scope & scope, ::tensorflow::Input images, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding)
Общедоступные атрибуты
operation
Operation
patches
::tensorflow::Output
Общедоступные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Общедоступные атрибуты

operation

Operation operation

patches

::tensorflow::Output patches

Общедоступные функции

ExtractImagePatches

 ExtractImagePatches(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  const gtl::ArraySlice< int > & ksizes,
  const gtl::ArraySlice< int > & strides,
  const gtl::ArraySlice< int > & rates,
  StringPiece padding
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/extract-image-patches

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API