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

Commit

Permalink
Update julia/src/metric.jl
Browse files Browse the repository at this point in the history
Co-Authored-By: Iblis Lin <[email protected]>
  • Loading branch information
2 people authored and Gobutah committed Oct 27, 2019
1 parent c72507b commit 2dfa1cc
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], +, metric.mse_sum)
mse_sum = mapreduce(nda->copy(nda)[1], +, metric.mse_sum; init = zero(MX_float))
[(:MSE, mse_sum / metric.n_sample)]
end

Expand Down

0 comments on commit 2dfa1cc

Please sign in to comment.