qfeval_functions.functions.project

project(a, x)[source]

Projects the given tensor x using the given projection matrix a.

Parameters:
  • a (Tensor) – A projection matrix.

  • x (Tensor) – A tensor to be projected.

Returns:

The projected tensor.

Return type:

Tensor

Shape:
  • a: \((*, O, I)\), where \(*\) represents any number of

    dimensions (including None), \(O\) is the number of output dimensions, and \(I\) is the number of input dimensions.

  • x: \((*, S, I)\), where \(*\) represents any number of

    dimensions (including None), \(S\) is the number of sections, and \(I\) is the number of input dimensions.

  • return: \((*, S, O)\), where \(*\) represents any number of

    dimensions (including None), \(S\) is the number of sections, and \(O\) is the number of output dimensions.

In qfeval, I/O dimensions and sections often represent symbols and timestamps respectively.