Skip to content

Commit

Permalink
Update linear layers in tests for layers
Browse files Browse the repository at this point in the history
  • Loading branch information
alperkesen committed Aug 21, 2019
1 parent 66c42ec commit 215db8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Knet: relu, gpu

input = rand(1:10)
output = rand(1:10)
layer = AutoML.Layer(input, output)
layer = AutoML.LinearLayer(input, output)

batchsize = map(x->2^x, rand(3:10))
x = atype(randn(input, batchsize))
Expand All @@ -26,8 +26,8 @@ end
hidden = rand(1:10)
output = rand(1:10)

layer = AutoML.Layer(input, hidden)
layer2 = AutoML.Layer(hidden, output)
layer = AutoML.LinearLayer(input, hidden)
layer2 = AutoML.LinearLayer(hidden, output)
chain = AutoML.LinearChain(layer, layer2)

batchsize = map(x->2^x, rand(3:10))
Expand All @@ -48,8 +48,8 @@ end
hidden = rand(1:10)
output = rand(1:10)

layer = AutoML.Layer(input, hidden)
layer2 = AutoML.Layer(hidden, output)
layer = AutoML.LinearLayer(input, hidden)
layer2 = AutoML.LinearLayer(hidden, output)
chain = AutoML.CategoricalChain(layer, layer2)

batchsize = map(x->2^x, rand(3:10))
Expand Down

0 comments on commit 215db8c

Please sign in to comment.