Skip to content

Fix UnicodeDecodeError in Triton depthwise conv template#176484

Closed
kevinngo0407 wants to merge 1 commit intopytorch:mainfrom
kevinngo0407:export-D95211429
Closed

Fix UnicodeDecodeError in Triton depthwise conv template#176484
kevinngo0407 wants to merge 1 commit intopytorch:mainfrom
kevinngo0407:export-D95211429

Conversation

@kevinngo0407
Copy link
Contributor

@kevinngo0407 kevinngo0407 commented Mar 4, 2026

Summary:
Our test is failing with a UnicodeDecodeError during Triton template loading. The cause was a non-ASCII em-dash character (, U+2013) in a comment on line 2 of triton_depthwise_conv.py.jinja. When the Triton template engine reads the file, it uses ASCII decoding, which cannot handle multi-byte UTF-8 characters.

The fix replaces the em-dash with a standard ASCII hyphen (-).

Test Plan: Ran cogwheel test

Reviewed By: chevalierNoir, kqfu

Differential Revision: D95211429

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo

Summary:
Our test is failing with a `UnicodeDecodeError` during Triton template loading. The cause was a non-ASCII em-dash character (`–`, U+2013) in a comment on line 2 of `triton_depthwise_conv.py.jinja`. When the Triton template engine reads the file, it uses ASCII decoding, which cannot handle multi-byte UTF-8 characters.

The fix replaces the em-dash with a standard ASCII hyphen (`-`).

Test Plan: Ran cogwheel test

Reviewed By: chevalierNoir, kqfu

Differential Revision: D95211429
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 4, 2026

This appears to be a diff that was exported from phabricator, but the PR author does not have sufficient permissions to run CI. @kevinngo0407, please do step 2 of internal wiki to get write access so you do not need to get CI approvals in the future. If you think this is a mistake, please contact the Pytorch Dev Infra team.

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 4, 2026

🔗 Helpful Links

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

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

✅ No Failures

As of commit a8be302 with merge base e77361a (image):
💚 Looks good so far! There are no failures yet. 💚

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

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 4, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: kevinngo0407 / name: Kevin Ngo (a8be302)

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 4, 2026

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-codesync
Copy link

meta-codesync bot commented Mar 4, 2026

@kevinngo0407 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95211429.

Copy link
Contributor

@kqfu kqfu left a comment

Choose a reason for hiding this comment

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

Thanks for the fix

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 4, 2026
@Skylion007
Copy link
Collaborator

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

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.

4 participants