Skip to content

Commit

Permalink
fix dotnet 9 build
Browse files Browse the repository at this point in the history
  • Loading branch information
zhen8838 committed Jan 17, 2025
1 parent 5147404 commit 2d6f3db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ public SearchNode(SearchNode<T> parent, IEnvironmentState<T> state)
public bool IsRootNode => Parent is null;

public abstract void Update(double reward);

public abstract void Dump(System.CodeDom.Compiler.IndentedTextWriter writer);
}
4 changes: 2 additions & 2 deletions src/Nncase.Schedule/Schedule/TileGraph/GraphMCTS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ public void Dump(string name)
}
}

public void Dump(System.CodeDom.Compiler.IndentedTextWriter writer)
public override void Dump(System.CodeDom.Compiler.IndentedTextWriter writer)
{
writer.WriteLine($"- name: {this}");
writer.WriteLine($" Action: {Action}");
writer.WriteLine($" QualityValue: {QualityValue}");
writer.WriteLine($" VisitTimes: {VisitTimes}");
writer.WriteLine($" Children:");
writer.Indent += 1;
foreach (var item in Children.OfType<MCTNode>())
foreach (var item in Children)
{
item.Dump(writer);
}
Expand Down

0 comments on commit 2d6f3db

Please sign in to comment.