Skip to content

Add subtract_ function to paddle frontend math module#28929

Merged
Sam-Armstrong merged 1 commit intoivy-llc:mainfrom
kallal79:fix-subtract-function-issue-21937
Aug 2, 2025
Merged

Add subtract_ function to paddle frontend math module#28929
Sam-Armstrong merged 1 commit intoivy-llc:mainfrom
kallal79:fix-subtract-function-issue-21937

Conversation

@kallal79
Copy link
Contributor

  • Implement missing subtract_ function in ivy/ivy/functional/frontends/paddle/math.py
  • Add corresponding test case in ivy_tests/test_ivy/test_frontends/test_paddle/test_math.py
  • Follows same pattern as other inplace functions like add_
  • Uses ivy.inplace_update for in-place subtraction operation
  • Fixes issue subtract_ #21937

Summary

This will create ONE CLEAN PR that:

  • Adds the missing subtract_ function
  • Includes proper test coverage
  • Follows Ivy's established patterns
  • Fixes issue subtract_ #21937
  • Is ready for review and merge

The PR will be clean, focused, and ready for the Ivy team to review!

- Implement missing subtract_ function in ivy/ivy/functional/frontends/paddle/math.py
- Add corresponding test case in ivy_tests/test_ivy/test_frontends/test_paddle/test_math.py
- Follows same pattern as other inplace functions like add_
- Uses ivy.inplace_update for in-place subtraction operation
- Fixes issue ivy-llc#21937
@Sam-Armstrong Sam-Armstrong merged commit 3c657c1 into ivy-llc:main Aug 2, 2025
12 of 13 checks passed
@kallal79
Copy link
Contributor Author

kallal79 commented Aug 2, 2025 via email

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.

2 participants