From 86bcbe0f16c6dc2c17a5502c337aa53cd2f51f2b Mon Sep 17 00:00:00 2001 From: phinzphinz Date: Thu, 24 Oct 2019 21:09:32 +0200 Subject: [PATCH] no such method => modified function args ERROR: MethodError: no method matching mapreduce(::getfield(MXNet.mx, Symbol("##8072#8073")), ::typeof(+), ::Float64, ::Array{NDArray{Float32,1},1}) --- julia/src/metric.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/julia/src/metric.jl b/julia/src/metric.jl index f1cdc68d947f..41f01d8b6b9a 100644 --- a/julia/src/metric.jl +++ b/julia/src/metric.jl @@ -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