Skip to content

Commit

Permalink
gpu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Feb 17, 2018
1 parent 1151198 commit 989adcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Conv2D(k::NTuple{2,Integer}, ch::Pair{<:Integer,<:Integer}, σ = identity;
Flux.treelike(Conv2D)

function (c::Conv2D)(x)
σ, b = c.σ, reshape(c.bias, 1, 1, :)
σ, b = c.σ, reshape(c.bias, 1, 1, :, 1)
σ.(conv2d(x, c.weight, stride = c.stride, padding = c.pad) .+ b)
end

Expand Down

0 comments on commit 989adcd

Please sign in to comment.