Coder Social home page Coder Social logo

A node type was not returned. This is either because a gradient was not defined, or the input is independent of the output about torch-autograd HOT 5 CLOSED

twitter-archive avatar twitter-archive commented on June 3, 2024
A node type was not returned. This is either because a gradient was not defined, or the input is independent of the output

from torch-autograd.

Comments (5)

alexbw avatar alexbw commented on June 3, 2024

Assignment via __newindex is not allowed in autograd functions:

So:

 join_mixture_result[{{},{i}}] = mixture_result

is illegal. We're thinking on ways of providing better error messages for this.

from torch-autograd.

jarmstrong2 avatar jarmstrong2 commented on June 3, 2024

What would you recommend as an alternative to assigning values to an already defined tensor? I did try torch.cat as well but without success.

from torch-autograd.

fmassa avatar fmassa commented on June 3, 2024

@jarmstrong2 maybe you can use select/narrow + copy ?

from torch-autograd.

alexbw avatar alexbw commented on June 3, 2024

Why did torch.cat fail?

On Mon, Jan 4, 2016 at 5:16 PM, John Armstrong [email protected]
wrote:

What would you recommend as an alternative to assigning values to an
already defined tensor? I did try torch.cat as well but without success.


Reply to this email directly or view it on GitHub
#74 (comment)
.

from torch-autograd.

jarmstrong2 avatar jarmstrong2 commented on June 3, 2024

it gave the same error, so it's a bit of a mystery to me also.

from torch-autograd.

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.