Skip to content

[Cutlass] Add tanh activation and test case for activations#162535

Closed
mlazos wants to merge 1 commit intogh/mlazos/18/basefrom
gh/mlazos/18/head
Closed

[Cutlass] Add tanh activation and test case for activations#162535
mlazos wants to merge 1 commit intogh/mlazos/18/basefrom
gh/mlazos/18/head

Conversation

@mlazos
Copy link
Contributor

@mlazos mlazos commented Sep 9, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 9, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/162535

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 707a674 with merge base 49c446c (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the tanh activation function to the CUTLASS Python event handler and includes a new test case for activation functions.

  • Replaces the NotImplementedError for tanh with proper implementation
  • Adds torch.tanh to the list of supported unary operations for testing
  • Introduces a dedicated test case for activation functions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
torch/_inductor/codegen/cuda/cutlass_python_evt.py Implements tanh activation by returning the proper function call
test/inductor/test_cutlass_backend.py Adds tanh to test operations and creates new activation test case

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #162536

pytorchmergebot pushed a commit that referenced this pull request Sep 10, 2025
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
@github-actions github-actions bot deleted the gh/mlazos/18/head branch October 11, 2025 02:06
Khanaksahu pushed a commit to Khanaksahu/pytorch-fork that referenced this pull request Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants