Giter Club home page Giter Club logo

Comments (4)

igul222 avatar igul222 commented on July 20, 2024 2

It's not currently possible to implement this model in torch/pytorch unfortunately, but there's an open PR which will add support for gradients-of-gradients, at which point it might be possible: pytorch/pytorch#1016

Computing gradients of gradients is typically done in tensorflow/theano/etc. as backprop through backprop, with 2x compute cost of just computing the gradients. It's done in several other works, https://arxiv.org/abs/1611.02163 and https://arxiv.org/abs/1502.03492 are the first that come to mind.

from improved_wgan_training.

apaszke avatar apaszke commented on July 20, 2024 1

@igul222 actually it is possible, but you'll need to compute the backward twice, and estimate the hessian-vector product using a finite difference approximation. See this tweet for more details.

from improved_wgan_training.

qianguih avatar qianguih commented on July 20, 2024

@apaszke Thanks for the note! However, I'm sorry that I'm still confused. Is there any example showing how to do this in pytorch?

from improved_wgan_training.

apaszke avatar apaszke commented on July 20, 2024

Unfortunately I'm not aware of any examples.

from improved_wgan_training.

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.