File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
python/tvm/contrib/ethosu/cascader Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 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."""
1819from typing import Tuple , List , Dict , DefaultDict
1920from collections import defaultdict
@@ -94,11 +95,14 @@ def cascade_part(
9495
9596
9697def 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 )
You can’t perform that action at this time.
0 commit comments