def traverse(operator):
    'Traverse operators from computation graph'
    if tag.is_broadcast(operator.tag):
        if (operator not in sch.outputs):
            sch[operator].compute_inline()
        for tensor in operator.input_tensors:
            if (tensor.op.input_tensors and (tensor.op not in scheduled_ops)):
                traverse(tensor.op)
    elif (operator.tag == 'conv2d_hwcn'):
        Apad = operator.input_tensors[0]
        W = operator.input_tensors[1]
        if (isinstance(W.op, tvm.tensor.ComputeOp) and ('dilate' in W.op.tag)):
            sch[W].compute_inline()
        B = operator.output(0)
        schedule(Apad, W, B)
    else:
        raise RuntimeError(('Unsupported operator: %s' % operator.tag))
    scheduled_ops.append(operator)
Traverse operators from computation graph
def traverse(operator):
    
    if tag.is_broadcast(operator.tag):
        if (operator not in sch.outputs):
            sch[operator].compute_inline()
        for tensor in operator.input_tensors:
            if (tensor.op.input_tensors and (tensor.op not in scheduled_ops)):
                traverse(tensor.op)
    elif (operator.tag == 'conv2d_hwcn'):
        Apad = operator.input_tensors[0]
        W = operator.input_tensors[1]
        if (isinstance(W.op, tvm.tensor.ComputeOp) and ('dilate' in W.op.tag)):
            sch[W].compute_inline()
        B = operator.output(0)
        schedule(Apad, W, B)
    else:
        raise RuntimeError(('Unsupported operator: %s' % operator.tag))
    scheduled_ops.append(operator)