test update

This commit is contained in:
Mike J Innes 2016-12-26 12:19:04 +00:00
parent 3bfb2c5a37
commit 39398680b7
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,6 @@ d = Affine(10, 20)
@test d(xs) == xs*d.W.x + d.b.x
let
@capture(syntax(d), _Line(x_[1] * W_ + b_))
@capture(syntax(d), _Frame(_Line(x_[1] * W_ + b_)))
@test isa(x, Input) && isa(W, Param) && isa(b, Param)
end

View File

@ -1,6 +1,6 @@
using Flux, DataFlow, MacroTools, Base.Test
using Flux: graph, Param
using DataFlow: Input, Line
using DataFlow: Input, Line, Frame
syntax(v::Vertex) = prettify(DataFlow.syntax(v))
syntax(x) = syntax(graph(x))