Giter Site home page Giter Site logo

R3: Non-contiguous tensors about cudnn.torch HOT 3 OPEN

mys007 avatar mys007 commented on August 19, 2024
R3: Non-contiguous tensors

from cudnn.torch.

Comments (3)

soumith avatar soumith commented on August 19, 2024

this is true. I think I can relax this constraint more.

from cudnn.torch.

soumith avatar soumith commented on August 19, 2024

i will fix it when I get time. In the meanwhile, pull requests are welcome :)

from cudnn.torch.

soumith avatar soumith commented on August 19, 2024

From NVIDIA:
3D support has been added for all layers in CuDNN v3 RC.
The story with non-contiguous tensors is somewhat complicated. Short answer is, cuDNN will return CUDNN_STATUS_NOT_SUPPORTED if you attempt to call some routine with the tensor format that is does not support.
Support matrix for the padding/transposition is as follows:

                 SUPPORT                                              OPTIMIZED
FORWARD:

Algo0 :              all                                                NCHW   , W-packed
Algo1                all                                                 NCHW  , W-packed
Algo2               all                                                 ?
FFT          NCHW HW-packed                            NCHW HW-packed

WGRAD
Algo0            NCHW CHW-packed
Algo1            NCHW CHW packed
FFT               NCHW HW-packed

DGRAD
Algo0          NCHW CHW packed
Algo1           NCHW CHW packed
FFT               NCHW HW-packed

Meaning that to get the best performance on gemm-based forward propagation you want to have NCHW contiguous tensor. Transposition/padding is supported, but performance is not guaranteed. FFT for both forward and backprop supports padding in C and N dimensions, but no transpositions. CHW-packed means that you can not have transpositions and padding in C,H,W dimensions, but can have padding in N (outermost) dimension. Non-convolutional operators should support any strides for input and output, please file a bug if they do not.

from cudnn.torch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.