Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ModuleNotFoundError in ptq #2814

Merged
merged 1 commit into from
May 6, 2024
Merged

Fix ModuleNotFoundError in ptq #2814

merged 1 commit into from
May 6, 2024

Conversation

HolyWu
Copy link
Contributor

@HolyWu HolyWu commented May 6, 2024

Description

holy@HOLYWU:~$ python3 -c "import torch_tensorrt.ts.ptq"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/holy/.local/lib/python3.10/site-packages/torch_tensorrt/ts/ptq.py", line 14, in <module>
    from py.torch_tensorrt.ts.logging import Level, log
ModuleNotFoundError: No module named 'py'

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes
  • I have added the relevant labels to my PR in so that relevant reviewers are notified

@github-actions github-actions bot added the component: api [Python] Issues re: Python API label May 6, 2024
@github-actions github-actions bot requested a review from gs-olive May 6, 2024 13:54
Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@narendasan narendasan merged commit 07c5b07 into pytorch:main May 6, 2024
3 checks passed
@HolyWu HolyWu deleted the fix_ptq branch May 6, 2024 16:51
laikhtewari pushed a commit that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants