qfeval_functions.functions.orthogonalize

orthogonalize(x, y, dim=-1)[source]

Orthogonalizes x with respect to y along the specified dimension.

Parameters:
  • x (Tensor) – The tensor to be orthogonalized.

  • y (Tensor) – The tensor with respect to which x will be orthogonalized.

  • dim (int) – The dimension along which the orthogonalization will be performed. Default is -1.

Returns:

The orthogonalized tensor.

Return type:

Tensor