Skip to content

Commit

Permalink
Merge pull request #333 from hrntsm/Fix/intermediate-attr-error
Browse files Browse the repository at this point in the history
Fix condition for setting user attribute in OptimizeLoop.cs
  • Loading branch information
hrntsm authored Oct 16, 2024
2 parents 0d31792 + bb8e3d3 commit 1d9d04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tunny/Handler/OptimizeLoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static int ReportPruner(dynamic optunaTrial, int step, Pruner pruner)
else
{
optunaTrial.report(report.Value, step);
if (string.IsNullOrEmpty(report.Attribute))
if (!string.IsNullOrEmpty(report.Attribute))
{
optunaTrial.set_user_attr("intermediate_value_step" + step, report.Attribute);
}
Expand Down

0 comments on commit 1d9d04d

Please sign in to comment.