Flux.jl/test/jit.jl
2018-02-27 22:40:51 +00:00

13 lines
149 B
Julia

using Flux, Base.Test
using Flux.JIT: compile
@testset "JIT" begin
m = Dense(10, 5)
f = compile(m, rand(10))
x = rand(10)
@test m(x) == f(x)
end