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>
Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Feb 2, 2026
@PaddlePaddle PaddlePaddle unlocked this conversation Feb 2, 2026
@zhwesky2010
Copy link
Collaborator

infoflow 2026-02-02 17-29-11

看一下test_relu没对齐的问题

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.

2 participants