Skip to Content
Python Deep Learning - Second Edition
book

Python Deep Learning - Second Edition

by Ivan Vasilev, Daniel Slater, Gianmario Spacagna, Peter Roelants, Valentino Zocca
January 2019
Intermediate to advanced
386 pages
11h 13m
English
Packt Publishing
Content preview from Python Deep Learning - Second Edition

Convolutional layers in deep learning libraries

PyTorch, Keras, and TensorFlow have out of the gate support for 1D, 2D, and 3D standard, and depthwise convolutions. The inputs and outputs of the convolution operation are tensors. A 1D convolution would have 3D input and output tensors. Their axes can be in either NCW or NWC order, where:

  • N stands for the index of the sample in the mini-batch
  • C stands for the index of the depth slice in the volume
  • W stands for the content of the slice

In the same way, a 2D convolution will be represented by NCHW or NHWC ordered tensors, where H and W are the height and width of the slices. A 3D convolution will have NCDHW or NDHWC order, where D stands for the depth of the slice.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Deep Learning

Python Deep Learning

Valentino Zocca, Gianmario Spacagna, Daniel Slater, Peter Roelants

Publisher Resources

ISBN: 9781789348460Supplemental Content