the most basic of tests

This commit is contained in:
Mike J Innes 2016-12-15 22:31:39 +00:00
parent 1c21a860e2
commit 51b572f709
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
xs = randn(10)' # TODO: batching semantics
d = Affine(10, 20)
@test d(xs) == xs*d.W.x + d.b.x