GithubHelp home page GithubHelp logo

Issues with nested trace about cassette.jl HOT 1 CLOSED

julialabs avatar julialabs commented on August 16, 2024 1
Issues with nested trace

from cassette.jl.

Comments (1)

jrevels avatar jrevels commented on August 16, 2024

Looks like this was fixed by #28 (if nothing is the expected value, at least, reopen if not) :

julia> versioninfo()
Julia Version 0.7.0-DEV.3436
Commit 26a2ea2 (2018-01-17 15:46 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin16.7.0)
  CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
Environment:

julia> using Cassette

julia> using Cassette: @context, @primitive, overdub

julia> @context Trace

julia> @context BTrace

julia> @primitive Trace (::typeof(broadcast))(f, args...) = overdub(BTrace, f)(args...)

julia> @primitive BTrace (::typeof(+))(args...) = nothing

julia> # Works
       overdub(Trace, (a,b) -> a .+ b)([1,2,3],[4,5,6])

julia> # Segfaults
       overdub(Trace, x -> x .+ x)([1,2,3])

julia> overdub(Trace, (a,b) -> a .+ b .+ b)([1,2,3],[4,5,6])

from cassette.jl.

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.