Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vectorize TensorPrimitives shift and rotate operators #97361

Merged
merged 9 commits into from
Jan 30, 2024

Commits on Jan 23, 2024

  1. Vectorize TensorPrimitives shift and rotate operators

    This adds a new IStatefulUnaryOperator interface, which differs from IUnaryOperator simply in that its Invoke members are instance rather than static. It then copies the existing InvokeSpanIntoSpan into a new helper that's then tweaked to accept an instance of an IStatefulUnaryOperator, calling its instance members instead of its static.
    
    That helper is then used to implement new ShiftLeftOperator, ShiftRightLogicalOperator, ShiftRightArithmeticOperator, RotateLeftOperator, and RotateRightOperator, which utilize methods on VectorXx to accelerate their implementation.
    
    It also adds ScaleBOperator, RootNOperator, and RoundOperator implementations used with the same helper, but these currently only have scalar implementations.
    stephentoub committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    6083518 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2024

  1. Configuration menu
    Copy the full SHA
    92dc20c View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Configuration menu
    Copy the full SHA
    c3b0507 View commit details
    Browse the repository at this point in the history
  2. Address PR feedback

    stephentoub committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    695c8bb View commit details
    Browse the repository at this point in the history
  3. Address PR feedback

    stephentoub committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    36d15c6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8dc5d0c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d47861a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d595cc0 View commit details
    Browse the repository at this point in the history
  7. Address PR feedback

    stephentoub committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    237a097 View commit details
    Browse the repository at this point in the history