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

[Bug Report] Cannot import ttnn without torch #17057

Open
blozano-tt opened this issue Jan 23, 2025 · 0 comments
Open

[Bug Report] Cannot import ttnn without torch #17057

blozano-tt opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@blozano-tt
Copy link
Contributor

Describe the bug

Cannot import ttnn without torch

To Reproduce
Steps to reproduce the behavior:

>>> import ttnn
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/blozano/anaconda3/envs/py310/lib/python3.10/site-packages/ttnn/__init__.py", line 260, in <module>
    import ttnn.operations
  File "/home/blozano/anaconda3/envs/py310/lib/python3.10/site-packages/ttnn/operations/__init__.py", line 11, in <module>
    _module = loader.find_spec(module_name).loader.load_module(module_name)
  File "/home/blozano/anaconda3/envs/py310/lib/python3.10/site-packages/ttnn/operations/binary_backward.py", line 8, in <module>
    from ttnn.operations.complex_binary_backward import (
  File "/home/blozano/anaconda3/envs/py310/lib/python3.10/site-packages/ttnn/operations/complex_binary_backward.py", line 6, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'

Expected behavior
I would expect that Tenstorrent's python module for accelerating neural networks on Tenstorrent would work without installing Meta's python module for accelerating neural networks.

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following environment information:

  • OS: Ubuntu 20.04
  • today main
@blozano-tt blozano-tt added the bug Something isn't working label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant