From b53d073cd3d0a6838a9d094f1bbd73f77f926927 Mon Sep 17 00:00:00 2001 From: zhen8838 Date: Mon, 13 Jan 2025 02:22:04 +0000 Subject: [PATCH] Apply code-format changes --- .../Schedule/MonteCarloTreeSearch/IEnvironmentState.cs | 2 +- .../Schedule/MonteCarloTreeSearch/SearchNode.cs | 2 +- src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/Searcher.cs | 2 +- src/Nncase.Schedule/Schedule/TileGraph/GraphMCTS.cs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/IEnvironmentState.cs b/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/IEnvironmentState.cs index 72b02722c..8690196e2 100644 --- a/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/IEnvironmentState.cs +++ b/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/IEnvironmentState.cs @@ -1,4 +1,4 @@ -// Copyright (c) Canaan Inc. All rights reserved. +// Copyright (c) Canaan Inc. All rights reserved. // Licensed under the Apache license. See LICENSE file in the project root for full license information. using System; diff --git a/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/SearchNode.cs b/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/SearchNode.cs index 4bb00fc81..6770704ef 100644 --- a/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/SearchNode.cs +++ b/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/SearchNode.cs @@ -1,4 +1,4 @@ -// Copyright (c) Canaan Inc. All rights reserved. +// Copyright (c) Canaan Inc. All rights reserved. // Licensed under the Apache license. See LICENSE file in the project root for full license information. using System; diff --git a/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/Searcher.cs b/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/Searcher.cs index 8e88713b8..382d0bd27 100644 --- a/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/Searcher.cs +++ b/src/Nncase.Schedule/Schedule/MonteCarloTreeSearch/Searcher.cs @@ -1,4 +1,4 @@ -// Copyright (c) Canaan Inc. All rights reserved. +// Copyright (c) Canaan Inc. All rights reserved. // Licensed under the Apache license. See LICENSE file in the project root for full license information. using System; diff --git a/src/Nncase.Schedule/Schedule/TileGraph/GraphMCTS.cs b/src/Nncase.Schedule/Schedule/TileGraph/GraphMCTS.cs index 99f388d70..b3032241f 100644 --- a/src/Nncase.Schedule/Schedule/TileGraph/GraphMCTS.cs +++ b/src/Nncase.Schedule/Schedule/TileGraph/GraphMCTS.cs @@ -1,4 +1,4 @@ -// Copyright (c) Canaan Inc. All rights reserved. +// Copyright (c) Canaan Inc. All rights reserved. // Licensed under the Apache license. See LICENSE file in the project root for full license information. using System.Collections; @@ -33,7 +33,7 @@ public sealed class MCTState : IEnvironmentState private int _permformCount; - private TieredTileGraph _graph; + private readonly TieredTileGraph _graph; public MCTState(TieredTileGraph graph, string moduleKind, string prefix, string searchPath, Dictionary solveMemo, ICpuTargetOptions targetOptions) {