Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
no such method => modified function args
Browse files Browse the repository at this point in the history
ERROR: MethodError: no method matching mapreduce(::getfield(MXNet.mx, Symbol("##8072#8073")), ::typeof(+), ::Float64, ::Array{NDArray{Float32,1},1})
  • Loading branch information
phinzphinz authored and Gobutah committed Oct 27, 2019
1 parent 22e5ae3 commit 3da417b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion julia/src/metric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ end

function get(metric::MSE)
# Delay copy until last possible moment
mse_sum = mapreduce(nda->copy(nda)[1], +, 0.0, metric.mse_sum)
mse_sum = mapreduce(nda->copy(nda)[1], +, metric.mse_sum)
[(:MSE, mse_sum / metric.n_sample)]
end

Expand Down

0 comments on commit 3da417b

Please sign in to comment.