Skip to content

Commit

Permalink
padding
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdominik committed Oct 27, 2023
1 parent c100764 commit 638b284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ data/mnist
data/fashion_mnist
data/pfam
test/logs
test/save_lenet.jld2
codecov.token
logs
.vscode
Expand Down
2 changes: 1 addition & 1 deletion src/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ function (l::Pad)(x)
core = Tuple( (1+pdims[i]) : (size(x,i)+pdims[i]) for i in 1:nd)

padded = fill!(similar(x, siz...), value)
padded[core...] = x
padded[core...] .= x
return padded
end

Expand Down

0 comments on commit 638b284

Please sign in to comment.