Skip to content

Commit f46204e

Browse files
committed
Fixes
Change-Id: Id062ca7793656be4e870ac48ba41a34aa83276d2
1 parent 7821e27 commit f46204e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

python/tvm/contrib/ethosu/cascader/scheduler.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17+
# pylint: disable=invalid-name
1718
"""Scheduler for cascader which converts Proposals into Schedules."""
1819
from typing import Tuple, List, Dict, DefaultDict
1920
from collections import defaultdict
@@ -94,11 +95,14 @@ def cascade_part(
9495

9596

9697
def update_readers(part: Part, readers: DefaultDict[te.Tensor, List[te.Tensor]]) -> None:
97-
"""Update a dictionary which stores the te.Tensors that need to be read in order to produce a given te.Tensor."""
98+
"""
99+
Update a dictionary which stores the te.Tensors that need to be read in
100+
order to produce a given te.Tensor.
101+
"""
98102
visited = set()
99103

100104
def _visit(tensor):
101-
if tensor is not visited and tensor not in part.subgraph.input_tensors:
105+
if tensor not in visited and tensor not in part.subgraph.input_tensors:
102106
visited.add(tensor)
103107
for input_tensor in tensor.op.input_tensors:
104108
readers[input_tensor].append(tensor)

0 commit comments

Comments
 (0)