TensorImagePatch.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_IMAGE_PATCH_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_IMAGE_PATCH_H
12 
13 namespace Eigen {
14 
29 namespace internal {
30 
31 template<DenseIndex Rows, DenseIndex Cols, typename XprType>
32 struct traits<TensorImagePatchOp<Rows, Cols, XprType> > : public traits<XprType>
33 {
36  typedef typename XprTraits::StorageKind StorageKind;
37  typedef typename XprTraits::Index Index;
38  typedef typename XprType::Nested Nested;
40  static const int NumDimensions = XprTraits::NumDimensions + 1;
41  static const int Layout = XprTraits::Layout;
42  typedef typename XprTraits::PointerType PointerType;
43 };
44 
45 template<DenseIndex Rows, DenseIndex Cols, typename XprType>
47 {
49 };
50 
51 template<DenseIndex Rows, DenseIndex Cols, typename XprType>
52 struct nested<TensorImagePatchOp<Rows, Cols, XprType>, 1, typename eval<TensorImagePatchOp<Rows, Cols, XprType> >::type>
53 {
55 };
56 
57 template <typename Self, bool Vectorizable>
59  typedef typename Self::Index Index;
60  typedef typename Self::Scalar Scalar;
61  typedef typename Self::Impl Impl;
63  const Self& self, const Index num_coeff_to_copy, const Index dst_index,
64  Scalar* dst_data, const Index src_index) {
65  const Impl& impl = self.impl();
66  for (Index i = 0; i < num_coeff_to_copy; ++i) {
67  dst_data[dst_index + i] = impl.coeff(src_index + i);
68  }
69  }
70 };
71 
72 template <typename Self>
73 struct ImagePatchCopyOp<Self, true> {
74  typedef typename Self::Index Index;
75  typedef typename Self::Scalar Scalar;
76  typedef typename Self::Impl Impl;
79  const Self& self, const Index num_coeff_to_copy, const Index dst_index,
80  Scalar* dst_data, const Index src_index) {
81  const Impl& impl = self.impl();
83  const Index vectorized_size =
84  (num_coeff_to_copy / packet_size) * packet_size;
85  for (Index i = 0; i < vectorized_size; i += packet_size) {
86  Packet p = impl.template packet<Unaligned>(src_index + i);
87  internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p);
88  }
89  for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) {
90  dst_data[dst_index + i] = impl.coeff(src_index + i);
91  }
92  }
93 };
94 
95 template <typename Self>
97  typedef typename Self::Index Index;
98  typedef typename Self::Scalar Scalar;
101  const Index num_coeff_to_pad, const Scalar padding_value,
102  const Index dst_index, Scalar* dst_data) {
104  const Packet padded_packet = internal::pset1<Packet>(padding_value);
105  const Index vectorized_size =
106  (num_coeff_to_pad / packet_size) * packet_size;
107  for (Index i = 0; i < vectorized_size; i += packet_size) {
108  internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i,
109  padded_packet);
110  }
111  for (Index i = vectorized_size; i < num_coeff_to_pad; ++i) {
112  dst_data[dst_index + i] = padding_value;
113  }
114  }
115 };
116 
117 } // end namespace internal
118 
119 template<DenseIndex Rows, DenseIndex Cols, typename XprType>
120 class TensorImagePatchOp : public TensorBase<TensorImagePatchOp<Rows, Cols, XprType>, ReadOnlyAccessors>
121 {
122  public:
125  typedef typename XprType::CoeffReturnType CoeffReturnType;
129 
141 
156 
157 
159  DenseIndex patch_rows() const { return m_patch_rows; }
161  DenseIndex patch_cols() const { return m_patch_cols; }
175  bool padding_explicit() const { return m_padding_explicit; }
188 
191  expression() const { return m_xpr; }
192 
193  protected:
194  typename XprType::Nested m_xpr;
203  const bool m_padding_explicit;
210 };
211 
212 // Eval as rvalue
213 template<DenseIndex Rows, DenseIndex Cols, typename ArgType, typename Device>
214 struct TensorEvaluator<const TensorImagePatchOp<Rows, Cols, ArgType>, Device>
215 {
217  typedef typename XprType::Index Index;
219  static const int NumDims = NumInputDims + 1;
223  Device> Self;
230 
231  enum {
232  IsAligned = false,
234  BlockAccess = false,
237  CoordAccess = false,
238  RawAccess = false
239  };
240 
241  //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
243  //===--------------------------------------------------------------------===//
244 
245  EIGEN_STRONG_INLINE TensorEvaluator( const XprType& op, const Device& device)
246  : m_device(device), m_impl(op.expression(), device)
247  {
248  EIGEN_STATIC_ASSERT((NumDims >= 4), YOU_MADE_A_PROGRAMMING_MISTAKE);
249 
250  m_paddingValue = op.padding_value();
251 
252  const typename TensorEvaluator<ArgType, Device>::Dimensions& input_dims = m_impl.dimensions();
253 
254  // Caches a few variables.
255  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
256  m_inputDepth = input_dims[0];
257  m_inputRows = input_dims[1];
258  m_inputCols = input_dims[2];
259  } else {
260  m_inputDepth = input_dims[NumInputDims-1];
261  m_inputRows = input_dims[NumInputDims-2];
262  m_inputCols = input_dims[NumInputDims-3];
263  }
264 
265  m_row_strides = op.row_strides();
266  m_col_strides = op.col_strides();
267 
268  // Input strides and effective input/patch size
269  m_in_row_strides = op.in_row_strides();
270  m_in_col_strides = op.in_col_strides();
271  m_row_inflate_strides = op.row_inflate_strides();
272  m_col_inflate_strides = op.col_inflate_strides();
273  // The "effective" input rows and input cols are the input rows and cols
274  // after inflating them with zeros.
275  // For examples, a 2x3 matrix with row_inflate_strides and
276  // col_inflate_strides of 2 comes from:
277  // A B C
278  // D E F
279  //
280  // to a matrix is 3 x 5:
281  //
282  // A . B . C
283  // . . . . .
284  // D . E . F
285 
286  m_input_rows_eff = (m_inputRows - 1) * m_row_inflate_strides + 1;
287  m_input_cols_eff = (m_inputCols - 1) * m_col_inflate_strides + 1;
288  m_patch_rows_eff = op.patch_rows() + (op.patch_rows() - 1) * (m_in_row_strides - 1);
289  m_patch_cols_eff = op.patch_cols() + (op.patch_cols() - 1) * (m_in_col_strides - 1);
290 
291  if (op.padding_explicit()) {
292  m_outputRows = numext::ceil((m_input_rows_eff + op.padding_top() + op.padding_bottom() - m_patch_rows_eff + 1.f) / static_cast<float>(m_row_strides));
293  m_outputCols = numext::ceil((m_input_cols_eff + op.padding_left() + op.padding_right() - m_patch_cols_eff + 1.f) / static_cast<float>(m_col_strides));
294  m_rowPaddingTop = op.padding_top();
295  m_colPaddingLeft = op.padding_left();
296  } else {
297  // Computing padding from the type
298  switch (op.padding_type()) {
299  case PADDING_VALID:
300  m_outputRows = numext::ceil((m_input_rows_eff - m_patch_rows_eff + 1.f) / static_cast<float>(m_row_strides));
301  m_outputCols = numext::ceil((m_input_cols_eff - m_patch_cols_eff + 1.f) / static_cast<float>(m_col_strides));
302  // Calculate the padding
303  m_rowPaddingTop = numext::maxi<Index>(0, ((m_outputRows - 1) * m_row_strides + m_patch_rows_eff - m_input_rows_eff) / 2);
304  m_colPaddingLeft = numext::maxi<Index>(0, ((m_outputCols - 1) * m_col_strides + m_patch_cols_eff - m_input_cols_eff) / 2);
305  break;
306  case PADDING_SAME:
307  m_outputRows = numext::ceil(m_input_rows_eff / static_cast<float>(m_row_strides));
308  m_outputCols = numext::ceil(m_input_cols_eff / static_cast<float>(m_col_strides));
309  // Calculate the padding
310  m_rowPaddingTop = ((m_outputRows - 1) * m_row_strides + m_patch_rows_eff - m_input_rows_eff) / 2;
311  m_colPaddingLeft = ((m_outputCols - 1) * m_col_strides + m_patch_cols_eff - m_input_cols_eff) / 2;
312  // The padding size calculation for PADDING_SAME has been updated to
313  // be consistent with how TensorFlow extracts its paddings.
314  m_rowPaddingTop = numext::maxi<Index>(0, m_rowPaddingTop);
315  m_colPaddingLeft = numext::maxi<Index>(0, m_colPaddingLeft);
316  break;
317  default:
318  eigen_assert(false && "unexpected padding");
319  m_outputCols=0; // silence the uninitialised warning;
320  m_outputRows=0;
321  }
322  }
323  eigen_assert(m_outputRows > 0);
324  eigen_assert(m_outputCols > 0);
325 
326  // Dimensions for result of extraction.
327  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
328  // ColMajor
329  // 0: depth
330  // 1: patch_rows
331  // 2: patch_cols
332  // 3: number of patches
333  // 4 and beyond: anything else (such as batch).
334  m_dimensions[0] = input_dims[0];
335  m_dimensions[1] = op.patch_rows();
336  m_dimensions[2] = op.patch_cols();
337  m_dimensions[3] = m_outputRows * m_outputCols;
338  for (int i = 4; i < NumDims; ++i) {
339  m_dimensions[i] = input_dims[i-1];
340  }
341  } else {
342  // RowMajor
343  // NumDims-1: depth
344  // NumDims-2: patch_rows
345  // NumDims-3: patch_cols
346  // NumDims-4: number of patches
347  // NumDims-5 and beyond: anything else (such as batch).
348  m_dimensions[NumDims-1] = input_dims[NumInputDims-1];
349  m_dimensions[NumDims-2] = op.patch_rows();
350  m_dimensions[NumDims-3] = op.patch_cols();
351  m_dimensions[NumDims-4] = m_outputRows * m_outputCols;
352  for (int i = NumDims-5; i >= 0; --i) {
353  m_dimensions[i] = input_dims[i];
354  }
355  }
356 
357  // Strides for moving the patch in various dimensions.
358  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
359  m_colStride = m_dimensions[1];
360  m_patchStride = m_colStride * m_dimensions[2] * m_dimensions[0];
361  m_otherStride = m_patchStride * m_dimensions[3];
362  } else {
363  m_colStride = m_dimensions[NumDims-2];
364  m_patchStride = m_colStride * m_dimensions[NumDims-3] * m_dimensions[NumDims-1];
365  m_otherStride = m_patchStride * m_dimensions[NumDims-4];
366  }
367 
368  // Strides for navigating through the input tensor.
369  m_rowInputStride = m_inputDepth;
370  m_colInputStride = m_inputDepth * m_inputRows;
371  m_patchInputStride = m_inputDepth * m_inputRows * m_inputCols;
372 
373  // Fast representations of different variables.
374  m_fastOtherStride = internal::TensorIntDivisor<Index>(m_otherStride);
375  m_fastPatchStride = internal::TensorIntDivisor<Index>(m_patchStride);
376  m_fastColStride = internal::TensorIntDivisor<Index>(m_colStride);
377  m_fastInflateRowStride = internal::TensorIntDivisor<Index>(m_row_inflate_strides);
378  m_fastInflateColStride = internal::TensorIntDivisor<Index>(m_col_inflate_strides);
379  m_fastInputColsEff = internal::TensorIntDivisor<Index>(m_input_cols_eff);
380 
381  // Number of patches in the width dimension.
382  m_fastOutputRows = internal::TensorIntDivisor<Index>(m_outputRows);
383  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
384  m_fastOutputDepth = internal::TensorIntDivisor<Index>(m_dimensions[0]);
385  } else {
386  m_fastOutputDepth = internal::TensorIntDivisor<Index>(m_dimensions[NumDims-1]);
387  }
388  }
389 
390  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_dimensions; }
391 
393  m_impl.evalSubExprsIfNeeded(NULL);
394  return true;
395  }
396 
397 #ifdef EIGEN_USE_THREADS
398  template <typename EvalSubExprsCallback>
399  EIGEN_STRONG_INLINE void evalSubExprsIfNeededAsync(
400  EvaluatorPointerType, EvalSubExprsCallback done) {
401  m_impl.evalSubExprsIfNeededAsync(nullptr, [done](bool) { done(true); });
402  }
403 #endif // EIGEN_USE_THREADS
404 
406  m_impl.cleanup();
407  }
408 
410  {
411  // Patch index corresponding to the passed in index.
412  const Index patchIndex = index / m_fastPatchStride;
413  // Find the offset of the element wrt the location of the first element.
414  const Index patchOffset = (index - patchIndex * m_patchStride) / m_fastOutputDepth;
415 
416  // Other ways to index this element.
417  const Index otherIndex = (NumDims == 4) ? 0 : index / m_fastOtherStride;
418  const Index patch2DIndex = (NumDims == 4) ? patchIndex : (index - otherIndex * m_otherStride) / m_fastPatchStride;
419 
420  // Calculate col index in the input original tensor.
421  const Index colIndex = patch2DIndex / m_fastOutputRows;
422  const Index colOffset = patchOffset / m_fastColStride;
423  const Index inputCol = colIndex * m_col_strides + colOffset * m_in_col_strides - m_colPaddingLeft;
424  const Index origInputCol = (m_col_inflate_strides == 1) ? inputCol : ((inputCol >= 0) ? (inputCol / m_fastInflateColStride) : 0);
425  if (inputCol < 0 || inputCol >= m_input_cols_eff ||
426  ((m_col_inflate_strides != 1) && (inputCol != origInputCol * m_col_inflate_strides))) {
427  return Scalar(m_paddingValue);
428  }
429 
430  // Calculate row index in the original input tensor.
431  const Index rowIndex = patch2DIndex - colIndex * m_outputRows;
432  const Index rowOffset = patchOffset - colOffset * m_colStride;
433  const Index inputRow = rowIndex * m_row_strides + rowOffset * m_in_row_strides - m_rowPaddingTop;
434  const Index origInputRow = (m_row_inflate_strides == 1) ? inputRow : ((inputRow >= 0) ? (inputRow / m_fastInflateRowStride) : 0);
435  if (inputRow < 0 || inputRow >= m_input_rows_eff ||
436  ((m_row_inflate_strides != 1) && (inputRow != origInputRow * m_row_inflate_strides))) {
437  return Scalar(m_paddingValue);
438  }
439 
440  const int depth_index = static_cast<int>(Layout) == static_cast<int>(ColMajor) ? 0 : NumDims - 1;
441  const Index depth = index - (index / m_fastOutputDepth) * m_dimensions[depth_index];
442 
443  const Index inputIndex = depth + origInputRow * m_rowInputStride + origInputCol * m_colInputStride + otherIndex * m_patchInputStride;
444  return m_impl.coeff(inputIndex);
445  }
446 
447  template<int LoadMode>
449  {
450  EIGEN_STATIC_ASSERT((PacketSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
451  eigen_assert(index+PacketSize-1 < dimensions().TotalSize());
452 
453  if (m_in_row_strides != 1 || m_in_col_strides != 1 || m_row_inflate_strides != 1 || m_col_inflate_strides != 1) {
454  return packetWithPossibleZero(index);
455  }
456 
457  const Index indices[2] = {index, index + PacketSize - 1};
458  const Index patchIndex = indices[0] / m_fastPatchStride;
459  if (patchIndex != indices[1] / m_fastPatchStride) {
460  return packetWithPossibleZero(index);
461  }
462  const Index otherIndex = (NumDims == 4) ? 0 : indices[0] / m_fastOtherStride;
463  eigen_assert(otherIndex == indices[1] / m_fastOtherStride);
464 
465  // Find the offset of the element wrt the location of the first element.
466  const Index patchOffsets[2] = {(indices[0] - patchIndex * m_patchStride) / m_fastOutputDepth,
467  (indices[1] - patchIndex * m_patchStride) / m_fastOutputDepth};
468 
469  const Index patch2DIndex = (NumDims == 4) ? patchIndex : (indices[0] - otherIndex * m_otherStride) / m_fastPatchStride;
470  eigen_assert(patch2DIndex == (indices[1] - otherIndex * m_otherStride) / m_fastPatchStride);
471 
472  const Index colIndex = patch2DIndex / m_fastOutputRows;
473  const Index colOffsets[2] = {patchOffsets[0] / m_fastColStride, patchOffsets[1] / m_fastColStride};
474 
475  // Calculate col indices in the original input tensor.
476  const Index inputCols[2] = {colIndex * m_col_strides + colOffsets[0] -
477  m_colPaddingLeft, colIndex * m_col_strides + colOffsets[1] - m_colPaddingLeft};
478  if (inputCols[1] < 0 || inputCols[0] >= m_inputCols) {
479  return internal::pset1<PacketReturnType>(Scalar(m_paddingValue));
480  }
481 
482  if (inputCols[0] == inputCols[1]) {
483  const Index rowIndex = patch2DIndex - colIndex * m_outputRows;
484  const Index rowOffsets[2] = {patchOffsets[0] - colOffsets[0]*m_colStride, patchOffsets[1] - colOffsets[1]*m_colStride};
485  eigen_assert(rowOffsets[0] <= rowOffsets[1]);
486  // Calculate col indices in the original input tensor.
487  const Index inputRows[2] = {rowIndex * m_row_strides + rowOffsets[0] -
488  m_rowPaddingTop, rowIndex * m_row_strides + rowOffsets[1] - m_rowPaddingTop};
489 
490  if (inputRows[1] < 0 || inputRows[0] >= m_inputRows) {
491  return internal::pset1<PacketReturnType>(Scalar(m_paddingValue));
492  }
493 
494  if (inputRows[0] >= 0 && inputRows[1] < m_inputRows) {
495  // no padding
496  const int depth_index = static_cast<int>(Layout) == static_cast<int>(ColMajor) ? 0 : NumDims - 1;
497  const Index depth = index - (index / m_fastOutputDepth) * m_dimensions[depth_index];
498  const Index inputIndex = depth + inputRows[0] * m_rowInputStride + inputCols[0] * m_colInputStride + otherIndex * m_patchInputStride;
499  return m_impl.template packet<Unaligned>(inputIndex);
500  }
501  }
502 
503  return packetWithPossibleZero(index);
504  }
505 
507 
509 
510 #ifdef EIGEN_USE_SYCL
511  // binding placeholder accessors to a command group handler for SYCL
512  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler &cgh) const {
513  m_impl.bind(cgh);
514  }
515 #endif
516 
517  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rowPaddingTop() const { return m_rowPaddingTop; }
518  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index colPaddingLeft() const { return m_colPaddingLeft; }
519  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index outputRows() const { return m_outputRows; }
520  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index outputCols() const { return m_outputCols; }
521  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userRowStride() const { return m_row_strides; }
522  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userColStride() const { return m_col_strides; }
523  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userInRowStride() const { return m_in_row_strides; }
524  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userInColStride() const { return m_in_col_strides; }
525  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rowInflateStride() const { return m_row_inflate_strides; }
526  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index colInflateStride() const { return m_col_inflate_strides; }
527 
529  costPerCoeff(bool vectorized) const {
530  // We conservatively estimate the cost for the code path where the computed
531  // index is inside the original image and
532  // TensorEvaluator<ArgType, Device>::CoordAccess is false.
533  const double compute_cost = 3 * TensorOpCost::DivCost<Index>() +
534  6 * TensorOpCost::MulCost<Index>() +
535  8 * TensorOpCost::MulCost<Index>();
536  return m_impl.costPerCoeff(vectorized) +
537  TensorOpCost(0, 0, compute_cost, vectorized, PacketSize);
538  }
539 
540  protected:
542  {
545  for (int i = 0; i < PacketSize; ++i) {
546  values[i] = coeff(index+i);
547  }
548  PacketReturnType rslt = internal::pload<PacketReturnType>(values);
549  return rslt;
550  }
551 
553 
559 
564 
569 
576 
580 
584 
587 
590 
593 
595 
598 };
599 
600 
601 } // end namespace Eigen
602 
603 #endif // EIGEN_CXX11_TENSOR_TENSOR_IMAGE_PATCH_H
Eigen::TensorEvaluator::dimensions
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions & dimensions() const
Definition: TensorEvaluator.h:73
Eigen::internal::ImagePatchPaddingOp::Packet
packet_traits< Scalar >::type Packet
Definition: TensorImagePatch.h:99
Eigen::TensorImagePatchOp::patch_cols
EIGEN_DEVICE_FUNC DenseIndex patch_cols() const
Definition: TensorImagePatch.h:161
EIGEN_DEVICE_FUNC
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
Eigen::TensorImagePatchOp::Index
Eigen::internal::traits< TensorImagePatchOp >::Index Index
Definition: TensorImagePatch.h:128
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Eigen::PaddingType
PaddingType
Definition: TensorTraits.h:257
Eigen::TensorImagePatchOp::m_row_inflate_strides
const DenseIndex m_row_inflate_strides
Definition: TensorImagePatch.h:201
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::CoeffReturnType
XprType::CoeffReturnType CoeffReturnType
Definition: TensorImagePatch.h:225
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::outputCols
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index outputCols() const
Definition: TensorImagePatch.h:520
Eigen::internal::TensorBlockNotImplemented
Definition: TensorBlock.h:617
Eigen::TensorImagePatchOp::padding_right
EIGEN_DEVICE_FUNC DenseIndex padding_right() const
Definition: TensorImagePatch.h:183
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_row_inflate_strides
Index m_row_inflate_strides
Definition: TensorImagePatch.h:562
Eigen::CwiseBinaryOp
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition: CwiseBinaryOp.h:77
Eigen::internal::traits< TensorImagePatchOp< Rows, Cols, XprType > >::Nested
XprType::Nested Nested
Definition: TensorImagePatch.h:38
Eigen::internal::nested
Definition: TensorTraits.h:174
Eigen::TensorImagePatchOp::Scalar
Eigen::internal::traits< TensorImagePatchOp >::Scalar Scalar
Definition: TensorImagePatch.h:123
Eigen::TensorImagePatchOp::m_padding_left
const DenseIndex m_padding_left
Definition: TensorImagePatch.h:206
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastColStride
internal::TensorIntDivisor< Index > m_fastColStride
Definition: TensorImagePatch.h:572
eigen_assert
#define eigen_assert(x)
Definition: Macros.h:1037
Eigen::numext::ceil
EIGEN_DEVICE_FUNC T() ceil(const T &x)
Definition: Eigen/src/Core/MathFunctions.h:1422
Eigen::TensorImagePatchOp::padding_type
EIGEN_DEVICE_FUNC PaddingType padding_type() const
Definition: TensorImagePatch.h:185
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::TensorEvaluator
EIGEN_STRONG_INLINE TensorEvaluator(const XprType &op, const Device &device)
Definition: TensorImagePatch.h:245
Eigen::internal::ImagePatchCopyOp< Self, true >::Scalar
Self::Scalar Scalar
Definition: TensorImagePatch.h:75
Eigen::TensorImagePatchOp::m_padding_type
const PaddingType m_padding_type
Definition: TensorImagePatch.h:208
Eigen::internal::traits< TensorImagePatchOp< Rows, Cols, XprType > >::_Nested
remove_reference< Nested >::type _Nested
Definition: TensorImagePatch.h:39
Eigen::internal::packet_traits
Definition: GenericPacketMath.h:106
Eigen::TensorImagePatchOp::padding_explicit
EIGEN_DEVICE_FUNC bool padding_explicit() const
Definition: TensorImagePatch.h:175
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::evalSubExprsIfNeeded
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType)
Definition: TensorImagePatch.h:392
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::userInRowStride
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userInRowStride() const
Definition: TensorImagePatch.h:523
Eigen::TensorEvaluator::Layout
@ Layout
Definition: TensorEvaluator.h:50
Eigen::internal::ImagePatchCopyOp::Impl
Self::Impl Impl
Definition: TensorImagePatch.h:61
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_outputRows
Index m_outputRows
Definition: TensorImagePatch.h:585
Eigen::TensorImagePatchOp::padding_bottom
EIGEN_DEVICE_FUNC DenseIndex padding_bottom() const
Definition: TensorImagePatch.h:179
Eigen::TensorImagePatchOp::m_patch_rows
const DenseIndex m_patch_rows
Definition: TensorImagePatch.h:195
different_sigmas::values
HybridValues values
Definition: testHybridBayesNet.cpp:245
Eigen::TensorImagePatchOp::padding_value
EIGEN_DEVICE_FUNC Scalar padding_value() const
Definition: TensorImagePatch.h:187
Eigen::TensorImagePatchOp::m_in_col_strides
const DenseIndex m_in_col_strides
Definition: TensorImagePatch.h:200
Eigen::internal::ImagePatchCopyOp::Run
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Run(const Self &self, const Index num_coeff_to_copy, const Index dst_index, Scalar *dst_data, const Index src_index)
Definition: TensorImagePatch.h:62
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastOutputRows
internal::TensorIntDivisor< Index > m_fastOutputRows
Definition: TensorImagePatch.h:591
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::outputRows
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index outputRows() const
Definition: TensorImagePatch.h:519
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::cleanup
EIGEN_STRONG_INLINE void cleanup()
Definition: TensorImagePatch.h:405
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::Dimensions
DSizes< Index, NumDims > Dimensions
Definition: TensorImagePatch.h:220
Eigen::TensorImagePatchOp
Definition: TensorForwardDeclarations.h:72
Eigen::PADDING_SAME
@ PADDING_SAME
Definition: TensorTraits.h:259
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::impl
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE TensorEvaluator< ArgType, Device > & impl() const
Definition: TensorImagePatch.h:508
Eigen::internal::ImagePatchCopyOp
Definition: TensorImagePatch.h:58
Eigen::TensorImagePatchOp::row_strides
EIGEN_DEVICE_FUNC DenseIndex row_strides() const
Definition: TensorImagePatch.h:163
Eigen::TensorEvaluator::PacketSize
static const int PacketSize
Definition: TensorEvaluator.h:36
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::packet
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
Definition: TensorImagePatch.h:448
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::Storage
StorageMemory< CoeffReturnType, Device > Storage
Definition: TensorImagePatch.h:228
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastInflateRowStride
internal::TensorIntDivisor< Index > m_fastInflateRowStride
Definition: TensorImagePatch.h:573
Eigen::internal::ImagePatchPaddingOp::Index
Self::Index Index
Definition: TensorImagePatch.h:97
Eigen::internal::TensorIntDivisor< Index >
Eigen::DSizes< Index, NumDims >
test_eigen_tensor.indices
indices
Definition: test_eigen_tensor.py:33
Eigen::TensorImagePatchOp::row_inflate_strides
EIGEN_DEVICE_FUNC DenseIndex row_inflate_strides() const
Definition: TensorImagePatch.h:171
Eigen::internal::ImagePatchCopyOp< Self, true >::Index
Self::Index Index
Definition: TensorImagePatch.h:74
EIGEN_ALIGN_MAX
#define EIGEN_ALIGN_MAX
Definition: ConfigureVectorization.h:157
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_otherStride
Index m_otherStride
Definition: TensorImagePatch.h:554
Eigen::internal::traits< TensorImagePatchOp< Rows, Cols, XprType > >::StorageKind
XprTraits::StorageKind StorageKind
Definition: TensorImagePatch.h:36
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::XprType
TensorImagePatchOp< Rows, Cols, ArgType > XprType
Definition: TensorImagePatch.h:216
Eigen::internal::eval< TensorImagePatchOp< Rows, Cols, XprType >, Eigen::Dense >::type
const typedef TensorImagePatchOp< Rows, Cols, XprType > & type
Definition: TensorImagePatch.h:48
Eigen::TensorImagePatchOp::padding_left
EIGEN_DEVICE_FUNC DenseIndex padding_left() const
Definition: TensorImagePatch.h:181
Eigen::PacketType
Definition: TensorMeta.h:50
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_col_inflate_strides
Index m_col_inflate_strides
Definition: TensorImagePatch.h:563
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_inputDepth
Index m_inputDepth
Definition: TensorImagePatch.h:581
Eigen::internal::true_type
Definition: Meta.h:96
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_colStride
Index m_colStride
Definition: TensorImagePatch.h:556
Eigen::internal::traits< TensorImagePatchOp< Rows, Cols, XprType > >::Scalar
internal::remove_const< typename XprType::Scalar >::type Scalar
Definition: TensorImagePatch.h:34
Eigen::TensorImagePatchOp::StorageKind
Eigen::internal::traits< TensorImagePatchOp >::StorageKind StorageKind
Definition: TensorImagePatch.h:127
Eigen::internal::ImagePatchCopyOp< Self, true >::Impl
Self::Impl Impl
Definition: TensorImagePatch.h:76
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_rowPaddingTop
Index m_rowPaddingTop
Definition: TensorImagePatch.h:588
Eigen::TensorImagePatchOp::m_col_strides
const DenseIndex m_col_strides
Definition: TensorImagePatch.h:198
Eigen::internal::traits< TensorImagePatchOp< Rows, Cols, XprType > >::PointerType
XprTraits::PointerType PointerType
Definition: TensorImagePatch.h:42
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::userRowStride
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userRowStride() const
Definition: TensorImagePatch.h:521
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastInflateColStride
internal::TensorIntDivisor< Index > m_fastInflateColStride
Definition: TensorImagePatch.h:574
Eigen::TensorImagePatchOp::m_padding_right
const DenseIndex m_padding_right
Definition: TensorImagePatch.h:207
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::userInColStride
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userInColStride() const
Definition: TensorImagePatch.h:524
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::colInflateStride
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index colInflateStride() const
Definition: TensorImagePatch.h:526
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_in_col_strides
Index m_in_col_strides
Definition: TensorImagePatch.h:561
Eigen::PADDING_VALID
@ PADDING_VALID
Definition: TensorTraits.h:258
Eigen::internal::unpacket_traits
Definition: GenericPacketMath.h:132
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::Scalar
internal::remove_const< typename XprType::Scalar >::type Scalar
Definition: TensorImagePatch.h:221
Eigen::internal::ImagePatchCopyOp::Scalar
Self::Scalar Scalar
Definition: TensorImagePatch.h:60
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
EIGEN_UNROLL_LOOP
#define EIGEN_UNROLL_LOOP
Definition: Macros.h:1461
Eigen::TensorEvaluator::PreferBlockAccess
@ PreferBlockAccess
Definition: TensorEvaluator.h:49
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::colPaddingLeft
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index colPaddingLeft() const
Definition: TensorImagePatch.h:518
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::userColStride
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index userColStride() const
Definition: TensorImagePatch.h:522
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_patch_cols_eff
Index m_patch_cols_eff
Definition: TensorImagePatch.h:568
Eigen::internal::ImagePatchPaddingOp
Definition: TensorImagePatch.h:96
Eigen::TensorImagePatchOp::TensorImagePatchOp
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorImagePatchOp(const XprType &expr, DenseIndex patch_rows, DenseIndex patch_cols, DenseIndex row_strides, DenseIndex col_strides, DenseIndex in_row_strides, DenseIndex in_col_strides, DenseIndex row_inflate_strides, DenseIndex col_inflate_strides, DenseIndex padding_top, DenseIndex padding_bottom, DenseIndex padding_left, DenseIndex padding_right, Scalar padding_value)
Definition: TensorImagePatch.h:142
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_paddingValue
Scalar m_paddingValue
Definition: TensorImagePatch.h:594
Eigen::Triplet< double >
Eigen::TensorImagePatchOp::in_col_strides
EIGEN_DEVICE_FUNC DenseIndex in_col_strides() const
Definition: TensorImagePatch.h:169
Eigen::internal::nested< TensorImagePatchOp< Rows, Cols, XprType >, 1, typename eval< TensorImagePatchOp< Rows, Cols, XprType > >::type >::type
TensorImagePatchOp< Rows, Cols, XprType > type
Definition: TensorImagePatch.h:54
Eigen::TensorImagePatchOp::m_padding_value
const Scalar m_padding_value
Definition: TensorImagePatch.h:209
Eigen::TensorEvaluator::m_device
const Device EIGEN_DEVICE_REF m_device
Definition: TensorEvaluator.h:192
Eigen::TensorImagePatchOp::m_padding_top
const DenseIndex m_padding_top
Definition: TensorImagePatch.h:204
Eigen::StorageMemory
Definition: TensorForwardDeclarations.h:37
Eigen::internal::traits< TensorImagePatchOp< Rows, Cols, XprType > >::Index
XprTraits::Index Index
Definition: TensorImagePatch.h:37
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::packetWithPossibleZero
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packetWithPossibleZero(Index index) const
Definition: TensorImagePatch.h:541
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_outputCols
Index m_outputCols
Definition: TensorImagePatch.h:586
Eigen::TensorImagePatchOp::col_strides
EIGEN_DEVICE_FUNC DenseIndex col_strides() const
Definition: TensorImagePatch.h:165
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::costPerCoeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const
Definition: TensorImagePatch.h:529
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_colPaddingLeft
Index m_colPaddingLeft
Definition: TensorImagePatch.h:589
Eigen::internal::array_size
Definition: Meta.h:445
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_dimensions
Dimensions m_dimensions
Definition: TensorImagePatch.h:552
Eigen::TensorEvaluator::BlockAccess
@ BlockAccess
Definition: TensorEvaluator.h:48
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_inputCols
Index m_inputCols
Definition: TensorImagePatch.h:583
Eigen::internal::ImagePatchCopyOp< Self, true >::Run
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Run(const Self &self, const Index num_coeff_to_copy, const Index dst_index, Scalar *dst_data, const Index src_index)
Definition: TensorImagePatch.h:78
tree::f
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Definition: testExpression.cpp:218
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastInputColsEff
internal::TensorIntDivisor< Index > m_fastInputColsEff
Definition: TensorImagePatch.h:575
Eigen::internal::ImagePatchPaddingOp::Run
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Run(const Index num_coeff_to_pad, const Scalar padding_value, const Index dst_index, Scalar *dst_data)
Definition: TensorImagePatch.h:100
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::Self
TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device > Self
Definition: TensorImagePatch.h:223
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastOutputDepth
internal::TensorIntDivisor< Index > m_fastOutputDepth
Definition: TensorImagePatch.h:592
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::rowPaddingTop
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rowPaddingTop() const
Definition: TensorImagePatch.h:517
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastOtherStride
internal::TensorIntDivisor< Index > m_fastOtherStride
Definition: TensorImagePatch.h:570
Eigen::internal::traits< TensorImagePatchOp< Rows, Cols, XprType > >::XprTraits
traits< XprType > XprTraits
Definition: TensorImagePatch.h:35
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::PacketReturnType
PacketType< CoeffReturnType, Device >::type PacketReturnType
Definition: TensorImagePatch.h:226
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::dimensions
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions & dimensions() const
Definition: TensorImagePatch.h:390
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::data
EIGEN_DEVICE_FUNC EvaluatorPointerType data() const
Definition: TensorImagePatch.h:506
Eigen::TensorImagePatchOp::m_xpr
XprType::Nested m_xpr
Definition: TensorImagePatch.h:194
Eigen::internal::traits
Definition: ForwardDeclarations.h:17
Eigen::TensorImagePatchOp::RealScalar
Eigen::NumTraits< Scalar >::Real RealScalar
Definition: TensorImagePatch.h:124
EIGEN_STATIC_ASSERT
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
Eigen::DenseIndex
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
Definition: Meta.h:66
Eigen::TensorImagePatchOp::m_col_inflate_strides
const DenseIndex m_col_inflate_strides
Definition: TensorImagePatch.h:202
Eigen::TensorImagePatchOp::m_padding_explicit
const bool m_padding_explicit
Definition: TensorImagePatch.h:203
Eigen::TensorEvaluator::EvaluatorPointerType
Storage::Type EvaluatorPointerType
Definition: TensorEvaluator.h:39
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_patchInputStride
Index m_patchInputStride
Definition: TensorImagePatch.h:579
p
float * p
Definition: Tutorial_Map_using.cpp:9
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_col_strides
Index m_col_strides
Definition: TensorImagePatch.h:558
Eigen::TensorEvaluator::coeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
Definition: TensorEvaluator.h:94
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_impl
TensorEvaluator< ArgType, Device > m_impl
Definition: TensorImagePatch.h:597
Eigen::TensorImagePatchOp::padding_top
EIGEN_DEVICE_FUNC DenseIndex padding_top() const
Definition: TensorImagePatch.h:177
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_patchStride
Index m_patchStride
Definition: TensorImagePatch.h:555
EIGEN_DEVICE_REF
#define EIGEN_DEVICE_REF
Definition: TensorMacros.h:50
Eigen::TensorImagePatchOp::patch_rows
EIGEN_DEVICE_FUNC DenseIndex patch_rows() const
Definition: TensorImagePatch.h:159
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_input_cols_eff
Index m_input_cols_eff
Definition: TensorImagePatch.h:566
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::rowInflateStride
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rowInflateStride() const
Definition: TensorImagePatch.h:525
Eigen::TensorEvaluator
A cost model used to limit the number of threads used for evaluating tensor expression.
Definition: TensorEvaluator.h:28
Eigen::TensorImagePatchOp::m_row_strides
const DenseIndex m_row_strides
Definition: TensorImagePatch.h:197
Eigen::TensorImagePatchOp::in_row_strides
EIGEN_DEVICE_FUNC DenseIndex in_row_strides() const
Definition: TensorImagePatch.h:167
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_in_row_strides
Index m_in_row_strides
Definition: TensorImagePatch.h:560
Eigen::TensorEvaluator::Scalar
Derived::Scalar Scalar
Definition: TensorEvaluator.h:31
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_patch_rows_eff
Index m_patch_rows_eff
Definition: TensorImagePatch.h:567
Eigen::TensorImagePatchOp::Nested
Eigen::internal::nested< TensorImagePatchOp >::type Nested
Definition: TensorImagePatch.h:126
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_rowInputStride
Index m_rowInputStride
Definition: TensorImagePatch.h:577
Eigen::TensorImagePatchOp::expression
const EIGEN_DEVICE_FUNC internal::remove_all< typename XprType::Nested >::type & expression() const
Definition: TensorImagePatch.h:191
Eigen::TensorImagePatchOp::m_in_row_strides
const DenseIndex m_in_row_strides
Definition: TensorImagePatch.h:199
Eigen::internal::ImagePatchCopyOp::Index
Self::Index Index
Definition: TensorImagePatch.h:59
internal
Definition: BandTriangularSolver.h:13
Eigen::internal::ImagePatchCopyOp< Self, true >::Packet
packet_traits< Scalar >::type Packet
Definition: TensorImagePatch.h:77
NULL
#define NULL
Definition: ccolamd.c:609
Eigen::TensorImagePatchOp::CoeffReturnType
XprType::CoeffReturnType CoeffReturnType
Definition: TensorImagePatch.h:125
Eigen::ColMajor
@ ColMajor
Definition: Constants.h:319
Eigen::TensorImagePatchOp::col_inflate_strides
EIGEN_DEVICE_FUNC DenseIndex col_inflate_strides() const
Definition: TensorImagePatch.h:173
Eigen::TensorEvaluator::IsAligned
@ IsAligned
Definition: TensorEvaluator.h:46
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::TensorBlock
internal::TensorBlockNotImplemented TensorBlock
Definition: TensorImagePatch.h:242
depth
static double depth
Definition: testSphericalCamera.cpp:64
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::coeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
Definition: TensorImagePatch.h:409
Eigen::internal::eval
Definition: XprHelper.h:332
Eigen::TensorEvaluator::PacketAccess
@ PacketAccess
Definition: TensorEvaluator.h:47
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::EvaluatorPointerType
Storage::Type EvaluatorPointerType
Definition: TensorImagePatch.h:229
Eigen::TensorImagePatchOp::m_padding_bottom
const DenseIndex m_padding_bottom
Definition: TensorImagePatch.h:205
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_colInputStride
Index m_colInputStride
Definition: TensorImagePatch.h:578
Eigen::TensorOpCost
Definition: TensorCostModel.h:25
Eigen::TensorImagePatchOp::TensorImagePatchOp
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorImagePatchOp(const XprType &expr, DenseIndex patch_rows, DenseIndex patch_cols, DenseIndex row_strides, DenseIndex col_strides, DenseIndex in_row_strides, DenseIndex in_col_strides, DenseIndex row_inflate_strides, DenseIndex col_inflate_strides, PaddingType padding_type, Scalar padding_value)
Definition: TensorImagePatch.h:130
test_callbacks.value
value
Definition: test_callbacks.py:160
Eigen::internal::ImagePatchPaddingOp::Scalar
Self::Scalar Scalar
Definition: TensorImagePatch.h:98
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_fastPatchStride
internal::TensorIntDivisor< Index > m_fastPatchStride
Definition: TensorImagePatch.h:571
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::Index
XprType::Index Index
Definition: TensorImagePatch.h:217
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::Impl
TensorEvaluator< ArgType, Device > Impl
Definition: TensorImagePatch.h:224
Scalar
SCALAR Scalar
Definition: bench_gemm.cpp:46
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_device
const Device EIGEN_DEVICE_REF m_device
Definition: TensorImagePatch.h:596
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_inputRows
Index m_inputRows
Definition: TensorImagePatch.h:582
Eigen::Dense
Definition: Constants.h:507
Cols
static const int Cols
Definition: testCallRecord.cpp:32
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_input_rows_eff
Index m_input_rows_eff
Definition: TensorImagePatch.h:565
Eigen::TensorImagePatchOp::m_patch_cols
const DenseIndex m_patch_cols
Definition: TensorImagePatch.h:196
Eigen::TensorEvaluator< const TensorImagePatchOp< Rows, Cols, ArgType >, Device >::m_row_strides
Index m_row_strides
Definition: TensorImagePatch.h:557


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:06:06