Git Product home page Git Product logo

Comments (4)

wsmoses avatar wsmoses commented on June 3, 2024

Yeah a reproducer would be helpful. As one hint, it seems to not be terribly happy about: _ZZ3runE13__sharedStack. Maybe mark it as inactive?

Regardless you probably want to have all differentiable variables passed as arguments rather than globals

from enzyme.

roastduck avatar roastduck commented on June 3, 2024

Sorry, I found it was my mistake. Although _ZZ3runE13__sharedStack is a local variable, but I mistakenly mark it as static, so it became a global variable.

Closing this issue, and it would be great to see if the compiler can warn me about this.

from enzyme.

roastduck avatar roastduck commented on June 3, 2024

Sorry but after I changed it to static, the "failed to deduce type of memset" message still occurs. This time _ZZ3runE13__sharedStack is a genuine local variable. Besides, it is not inactive, because gradient actually flows by this variable.

_ZZ3runE13__sharedStack is actually a holder array for other variables I use. Other variables are slices of this array.

See the log and the reproducer:
log.txt
run-4ab46e.cpp.txt
run-4ab46e.sh.txt
Please change *.cpp.txt to *.txt, and *.sh.txt to *.txt. It was because GitHub don't allow uploading .cpp and .sh files.

from enzyme.

wsmoses avatar wsmoses commented on June 3, 2024

I'm having some issues reproducing this. Can you make a version which errors in the Enzyme Compiler Explorer? https://enzyme.mit.edu/explorer/

from enzyme.

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.