-
-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scalar pad and stride #237
Conversation
src/layers/conv.jl
Outdated
@@ -25,10 +28,9 @@ Conv(w::AbstractArray{T}, b::AbstractVector{T}, σ = identity; | |||
Conv(σ, w, b, stride, pad) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better if the call to expand
goes here, I think.
Great – can you add the same functionality to |
Yeah, sure. I'll do that. |
src/layers/conv.jl
Outdated
Conv(param(init(k..., ch...)), param(zeros(ch[2])), σ, | ||
stride = stride, pad = pad) | ||
stride = expand(Val{N}, stride), pad = expand(Val{N}, pad)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this now since it just forwards to the more basic constructor
Thanks @tejank10! |
This is regarding issue #235 . Added support for scalar pad and stride, along with existing tuple pad and stride.