Answers.Body: <p>Your stride will be just an integer number only when doing 1D convolution. When doing 2D convolution you get 2 integers like your example: <code>(1, 1)</code>.</p>
  
  <p>When there is more than one dimension to a stride, then each is applied independently in its associated dimension, and all valid combinations that fit in the area or volume should be calculated.</p>
  
  <p>A 2D stride defines a rectangular grid of points where an operation is applied. The first number is distance between grid points along first (x) axis, the second number is distance between grid points along second (y) axis. You can decide to downsample each dimension differently by using different numbers for each dimension.</p>
  
  <p>In TensorFlow is common to see 4D stride parameters, with axes of (example, height, width, channel). Typically you don't want to skip any examples or channels in a normal CNN, even though the framework can do that, so you will see values like (1, 2, 2, 1) used when using stride to downsample just image height and width dimensions between layers.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-11-15T12:48:56.727Z
Answers.LastActivityDate: 2018-10-29T21:53:01.467Z
Answers.LastEditDate: 2018-10-29T21:53:01.467Z
Answers.UserDisplayName: Neil Slater
Body: <p>I know what meaning <em>stride</em> has when it is just an integer number (by which step you should apply a filter to the image). But about <code>(1, 1)</code> or even more dimensional stride?</p>
  
Tags: <convolutional-neural-networks><definitions><stride>
Title: What is the meaning of a 2D stride?
UserDisplayName: Kenenbek Arzymatov
ThreadText: # What is the meaning of a 2D stride?
  
  (Asked by: username_0 on 2017-11-15)
  
  I know what meaning *stride* has when it is just an integer number (by which step you should apply a filter to the image). But about `(1, 1)` or even more dimensional stride?
  
  **Tags:** convolutional-neural-networks, definitions, stride
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-15. Score: 5 | Accepted answer
  
  Your stride will be just an integer number only when doing 1D convolution. When doing 2D convolution you get 2 integers like your example: `(1, 1)`.
  
  When there is more than one dimension to a stride, then each is applied independently in its associated dimension, and all valid combinations that fit in the area or volume should be calculated.
  
  A 2D stride defines a rectangular grid of points where an operation is applied. The first number is distance between grid points along first (x) axis, the second number is distance between grid points along second (y) axis. You can decide to downsample each dimension differently by using different numbers for each dimension.
  
  In TensorFlow is common to see 4D stride parameters, with axes of (example, height, width, channel). Typically you don't want to skip any examples or channels in a normal CNN, even though the framework can do that, so you will see values like (1, 2, 2, 1) used when using stride to downsample just image height and width dimensions between layers.
  
  
  ---
  
  