test update
This commit is contained in:
parent
3bfb2c5a37
commit
39398680b7
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue