Skip to content

Conversation

@Manfredss
Copy link
Contributor

PR Docs

add torch.nn.functional.relu, relu_, leaky_relu and leaky_relu_

PR APIs

torch.nn.functional.relu
torch.nn.functional.relu_
torch.nn.functional.leaky_relu
torch.nn.functional.leaky_relu_

related paddle pr: 77300

@paddle-bot
Copy link

paddle-bot bot commented Jan 11, 2026

Thanks for your contribution!

Manfredss and others added 2 commits January 26, 2026 14:54
Step 1: Update Matcher to ChangePrefixMatcher for:
- torch.nn.functional.relu
- torch.nn.functional.relu_
- torch.nn.functional.leaky_relu
- torch.nn.functional.leaky_relu_
- torch.relu

Step 2: Add test cases for different tensor dimensions and dtypes:
- 1D tensor input
- 2D tensor input
- float64 dtype

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant