Skip to content

Commit

Permalink
Test torch import time
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim committed Nov 5, 2024
1 parent c1e2b1a commit 57a71d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/train_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
steps:
- name: Install dependencies
run: |
pip install numpy
# pip install torch - need to find a way to cache this otherwise it will take a long time to install
pip install numpy torch
- name: Create and run training script
run: |
Expand Down
8 changes: 2 additions & 6 deletions train.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import numpy

a = numpy.array([1, 2, 3])
b = numpy.array([4, 5, 6])

c = a + b
import torch

a = torch.randn(1)
print(c)

0 comments on commit 57a71d0

Please sign in to comment.