parameters: (x, y)
return_statement: return _elwise(x, y, mode=Elemwise.Mode.SUB)
docstring: r"""Element-wise `sub`.
  
      Examples:
  
          .. testcode::
  
              import numpy as np
              from megengine import tensor
              import megengine.functional as F
  
              x = tensor(np.arange(1, 7, dtype=np.float32).reshape(2, 3))
              y = tensor(np.arange(0, 6, dtype=np.float32).reshape(2, 3))
              out = F.sub(x, y)
              print(out.numpy())
  
          Outputs:
  
          .. testoutput::
  
              [[1. 1. 1.]
               [1. 1. 1.]]
docstring_summary: r"""Element-wise `sub`.
docstring_tokens: r Element - wise sub .
function: def sub(x, y):
      r"""Element-wise `sub`.
  
      Examples:
  
          .. testcode::
  
              import numpy as np
              from megengine import tensor
              import megengine.functional as F
  
              x = tensor(np.arange(1, 7, dtype=np.float32).reshape(2, 3))
              y = tensor(np.arange(0, 6, dtype=np.float32).reshape(2, 3))
              out = F.sub(x, y)
              print(out.numpy())
  
          Outputs:
  
          .. testoutput::
  
              [[1. 1. 1.]
               [1. 1. 1.]]
  
      """
      return _elwise(x, y, mode=Elemwise.Mode.SUB)
function_tokens: def sub ( x , y ) : return _elwise ( x , y , mode = Elemwise . Mode . SUB )