Giter Site home page Giter Site logo

Comments (3)

TomonobuTsujikawa avatar TomonobuTsujikawa commented on August 15, 2024

The default return value of grad_depends_{input,output}_data() was changed by:

MaxPoolingCudaCudnn should be kept until input/output data is used by backward calculation due to cudnn limitation.
Also, to prevent broken data that are used in backward by inplace, show error messages at graph construction:

Failed `input->allow_modify_data()`: Modifying data is prohibited by the parent function of the 0-th input data of 'ReLUCudaCudnn' (depth=3). (Parent is 'MaxPoolingCudaCudnn').

It is necessary to set False for all places where inplace=True when giving MaxPooling output to ReLU.
So, you can run it by changing following in mnist_lenet_prediction().

    c1 = F.relu(F.max_pooling(c1, (2, 2)), inplace=False)
    c2 = PF.convolution(c1, 16, (5, 5), name='conv2')
    c2 = F.relu(F.max_pooling(c2, (2, 2)), inplace=False)

We will consider other ways such as ignoring inplace.
Sorry for inconvenience.

from nnabla-examples.

TomonobuTsujikawa avatar TomonobuTsujikawa commented on August 15, 2024

Now we prepared PRs to ignore inplace option from ReLU, LeakyReLU, RandomErase, Add2, BcAdd2, Sub2, AddScalar, MulScalar.
Please be careful if you expect inplace behavior.

This change will be released by nnabla v1.21.0.

from nnabla-examples.

TomonobuTsujikawa avatar TomonobuTsujikawa commented on August 15, 2024

v1.21.0 was released, so close this issue.

from nnabla-examples.

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.