You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to strictly specify the weight init for testing, but encountered this odd result. I think there should be validation to ensure that the weight shape matches the kernel size and input channels, and error if there is a mismatch.
The text was updated successfully, but these errors were encountered:
You might be looking for Conv(weights; pad=(1,1))? I.e. there's a method which accepts weights::Array, for exactly this purpose. It does not take (3, 3), 1 => 1 since, as you note, these are implied by the array size.
The methods which accept an init function certainly assume size(init(s...)) == s. Maybe they can all be made to check somehow but it does seem a somewhat strange path.
The initialisation of the weight matrix is W = init(out, in), calling the function given to keyword init
I wanted to strictly specify the weight init for testing, but encountered this odd result. I think there should be validation to ensure that the weight shape matches the kernel size and input channels, and error if there is a mismatch.
The text was updated successfully, but these errors were encountered: