-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Convolutions error using Measurements.jl #405
Comments
Yeah changing the weights won't help, because the undefined reference it is complaining about is an index to julia> using Measurements
julia> x = rand(Float32, 2, 2)
2×2 Matrix{Float32}:
0.737843 0.811024
0.440666 0.4111
julia> m = measurement.(x, 0.02)
2×2 Matrix{Measurement{Float64}}:
0.738±0.02 0.811±0.02
0.441±0.02 0.411±0.02
julia> similar(m)
2×2 Matrix{Measurement{Float64}}:
#undef #undef
#undef #undef
julia> similar(x)
2×2 Matrix{Float32}:
6.071f-40 1.10454f-16
0.0 1.0f-45 |
So fixing this would require Measurements.jl to implement a I'm guessing the issue would be the unique identifier |
One fix would be to change L111 and L154 of # old
y[w_idx, h_idx, d_idx, c_out, batch] = alpha*dotprod + beta*y[w_idx, h_idx, d_idx, c_out, batch]
# new
# somewhere outside loops
yidxs = LinearIndices(y)
# L111 and later L154
if !isassigned(y, yidxs[w_idx, h_idx, d_idx, c_out, batch])
y[w_idx, h_idx, d_idx, c_out, batch] = yT(0)
end
y[w_idx, h_idx, d_idx, c_out, batch] = alpha*dotprod + beta*y[w_idx, h_idx, d_idx, c_out, batch] Having Measurements.jl define a |
I believe this is a dupe of #490. Using an initialization loop or |
Passing an Array of Measurements to a
Conv
layer throws the errorERROR: UndefRefError: access to undefined reference
:@DhairyaLGandhi's suggestion from Slack's #machine-learning to set the weights as Measurements doesn't fix the issue:
The text was updated successfully, but these errors were encountered: