code: def inline_no_ops(cached_func, sch):
      """Inline 'no-ops' - operations that in principle do nothing.
  
      Modifies the schedule in-place. For now we inline reshape and
      strided slice - more could be added.
  
      Parameters
      ----------
      cached_func : CachedFunc
          The cached func.
      sch : tvm.te.Schedule
          The schedule.
  
      """
      no_ops = {"T_reshape", "T_strided_slice"}
      scheduled = set()
  
      def _visit(tensor):
          if tensor not in scheduled and isinstance(
              tensor.op, tvm.te.ComputeOp
          ):
              if tensor.op.name in no_ops:
                  sch[tensor].compute_inline()
              scheduled.add(tensor)
              for input_tensor in tensor.op.input_tensors:
                  _visit(input_tensor)
  
      for out in cached_func.outputs:
          _visit(out)
  
file_path: tvm/python/tvm/relay/backend/contrib/ethosu/tir/scheduler.py
imports: import tvm
  from tvm.contrib.ethosu.cascader import Propagator
label_desc: Use image node_id 8 for calling a global function with example usage: inline_no_ops(cached_func, sch) without return types