FluxML / IRTools.jl

Mike's Little Intermediate Representation
MIT License
111 stars 36 forks source link

Update dynamo refresh warning #40

Closed MasonProtter closed 4 years ago

MasonProtter commented 4 years ago

The caveat about needing IRTools.refresh isn't needed on 1.3. Not sure if there are additional caveats that should be put in though

julia> VERSION
v"1.3.1"

julia> @dynamo roundtrip(a...) = IR(a...)

julia> foo(x) = x^2
foo (generic function with 1 method)

julia> roundtrip(foo, 5)
25

julia> foo(x) = x+1
foo (generic function with 1 method)

julia> roundtrip(foo, 5)
6
MikeInnes commented 4 years ago

:+1: Thanks!