Skip to content

Commit

Permalink
fix: torch best model better or equal
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz authored and mergify[bot] committed Mar 22, 2022
1 parent 2dabd89 commit 4d50c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backends/torch/torchlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ namespace dd
{
if (metric_name == "eucll" || metric_name == "delta_score_0.1"
|| metric_name == "L1_mean_error")
return (v2 > v1);
return (v1 > v2);
return (v2 >= v1);
return (v1 >= v2);
}

template <class TInputConnectorStrategy, class TOutputConnectorStrategy,
Expand Down

0 comments on commit 4d50c8e

Please sign in to comment.