GithubHelp home page GithubHelp logo

Comments (1)

davidsandberg avatar davidsandberg commented on April 30, 2024

This seems more difficult than expected.
When running on the GPU the backward pass is not deterministic.
Made a very simple test case (test/seed_test.py) to check this.
The problem is due to the gradient computation in CuDNN. When running it on CPU (i.e. without CuDNN) the test case passes. After upgrading to CuDNN 4.0.7 (from v3) also the test case with only linear layers breaks.
It is described in the CuDNN user guide (section 2.5, see below).
The problem has been discussed in https://groups.google.com/forum/#!topic/theano-users/718YYXwaYEk

2.5. Reproducibility (determinism)
By design, most of cuDNN's routines from a given version generate the same bit-wise
results at every run when executed on GPUs with the same architecture and the same
number of SMs. However, bit-wise reproducibility is not guaranteed across versions,
as the implementation of a given routine may change. With the current release, the
following routines do not guarantee reproducibility because they use atomic add
operations:
cudnnConvolutionBackwardFilter when
CUDNN_CONVOLUTION_BWD_FILTER_ALGO_0 or
CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3 is used
cudnnConvolutionBackwardData when
CUDNN_CONVOLUTION_BWD_DATA_ALGO_0 is used
cudnnPoolingBackward when CUDNN_POOLING_MAX is used

from facenet.

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.