Skip to content

Conversation

@Rudra-Tiwari-codes
Copy link

Proposed changes

This PR implements a scale parameter for the FFT primitive and updates the FFT::vjp (Vector Jacobian Product) to utilize this parameter. Previously, the VJP for FFT involved explicit Multiply nodes to handle 1/N scaling and symmetry masks. By integrating the scaling factor directly into the FFT primitive:
The computation graph is simplified (fewer nodes).
Performance is potentially improved by fusing the scaling operation into the FFT kernel execution on both CPU and Metal backends.
The FFT primitive constructor and is_equivalent checks have been updated to support the new member variable.

Checklist

Put an x in the boxes that apply.

  • [x ] I have read the CONTRIBUTING document
  • [ x] I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • [x ] I have added tests that prove my fix is effective or that my feature works
  • [ x] I have updated the necessary documentation (if needed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant