Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
chore: add PyTorch
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwu1105 committed Nov 3, 2022
1 parent 6fdf9fb commit 6445155
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Expand Up @@ -220,7 +220,7 @@ contextmanager-decorators=contextlib.contextmanager
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=
generated-members=torch.*

# Tells whether to warn about missing members when the owner of the attribute
# is inferred to be None.
Expand Down
6 changes: 6 additions & 0 deletions main.py
@@ -0,0 +1,6 @@
import torch

x = torch.rand(5, 3)
print(x)

print(torch.cuda.is_available())

0 comments on commit 6445155

Please sign in to comment.