parameters: (t)
docstring: Initialize the tensor with ones on the diagonal and zeros elsewhere.
  
      Note: it is implemented by calling numpy. 
      Do not call it within forward propagation when computation graph is enabled.
  
      # Arguments
          t(Tensor): the matrix to be filled in.
docstring_summary: Initialize the tensor with ones on the diagonal and zeros elsewhere.
docstring_tokens: Initialize the tensor with ones on the diagonal and zeros elsewhere .
function: def eye(t):
      """Initialize the tensor with ones on the diagonal and zeros elsewhere.
  
      Note: it is implemented by calling numpy. 
      Do not call it within forward propagation when computation graph is enabled.
  
      # Arguments
          t(Tensor): the matrix to be filled in.
      """
      if len(t.shape) == 2:
          raise ValueError("Only tensors with 2 dimensions are supported")
      a = np.eye(t.shape[0], t.shape[1], dtype=np.float32)
      t.copy_from(a)
function_tokens: def eye ( t ) : if len ( t . shape ) == 2 : raise ValueError ( "Only tensors with 2 dimensions are supported" ) a = np . eye ( t . shape [ 0 ] , t . shape [ 1 ] , dtype = np . float32 ) t . copy_from ( a )