parameters: (cls, op, input_idx, start_axis=0)
return_statement: return True
docstring: Check whether op is inplace reuse
docstring_summary: Check whether op is inplace reuse
docstring_tokens: Check whether op is inplace reuse
function: def inplace_reuse(cls, op, input_idx, start_axis=0):
          """Check whether op is inplace reuse"""
          if cls.dtype_bytes(op.output.dtype) > cls.dtype_bytes(op.inputs[input_idx].dtype):
              return False
          _, elem_relation = cls.get_prim(op).relation_func(op, input_idx)
          for i in range(start_axis, len(elem_relation)):
              if elem_relation[i] != cls.ELEMWISE:
                  return False
          return True
function_tokens: def inplace_reuse ( cls , op , input_idx , start_axis = 0 ) : if cls . dtype_bytes ( op . output . dtype ) > cls . dtype_bytes ( op . inputs [ input_idx ] . dtype ) : return False _ , elem_relation = cls . get_prim ( op ) . relation_func ( op , input_idx ) for i in range ( start_axis , len ( elem_relation ) ) : if elem_relation [ i ] != cls . ELEMWISE : return False return True