parameters: (self)
return_statement: return bprop
docstring: Grad definition for 'Ger' operation
docstring_summary: Grad definition for 'Ger' operation
docstring_tokens: Grad definition for Ger operation
function: def get_bprop_ger(self):
      """Grad definition for 'Ger' operation"""
      transpose_op = P.Transpose()
      matmul = P.MatMul()
      expand_dims = P.ExpandDims()
      squeeze = P.Squeeze(1)
  
      def bprop(input_x, input_y, out, dout):
          dx = squeeze(matmul(dout, expand_dims(input_y, 1)))
          dy = squeeze(matmul(transpose_op(dout, (1, 0)), expand_dims(input_x, 1)))
          return dx, dy
  
      return bprop
function_tokens: def get_bprop_ger ( self ) : transpose_op = P . Transpose ( ) matmul = P . MatMul ( ) expand_dims = P . ExpandDims ( ) squeeze = P . Squeeze ( 1 ) def bprop ( input_x , input_y , out , dout ) : dx = squeeze ( matmul ( dout , expand_dims ( input_y , 1 ) ) ) dy = squeeze ( matmul ( transpose_op ( dout , ( 1 , 0 ) ) , expand_dims ( input_x , 1 ) ) ) return dx , dy return bprop