Skip to content

Commit

Permalink
Improve docs for tf.nn.depthwise_conv2d_native
Browse files Browse the repository at this point in the history
  • Loading branch information
AnishShah committed Jun 21, 2017
1 parent b7acb6a commit 63c1bef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorflow/core/ops/nn_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -831,11 +831,13 @@ a different filter to each input channel (expanding from 1 channel to
`channel_multiplier` channels for each), then concatenates the results
together. Thus, the output has `in_channels * channel_multiplier` channels.
```
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]`.
Expand Down

0 comments on commit 63c1bef

Please sign in to comment.