|
| 1 | +From 33c682ac27479f501924cf159d0a75ad91deb589 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Eric Bower < [email protected]> |
| 3 | +Date: Tue, 23 Jul 2024 10:07:57 -0400 |
| 4 | +Subject: [PATCH 1/3] chore: add torch and create random tensor |
| 5 | + |
| 6 | +--- |
| 7 | + requirements.txt | 1 + |
| 8 | + train.py | 3 +++ |
| 9 | + 2 files changed, 4 insertions(+) |
| 10 | + create mode 100644 requirements.txt |
| 11 | + |
| 12 | +diff --git a/requirements.txt b/requirements.txt |
| 13 | +new file mode 100644 |
| 14 | +index 0000000..4968a39 |
| 15 | +--- /dev/null |
| 16 | ++++ b/requirements.txt |
| 17 | +@@ -0,0 +1 @@ |
| 18 | ++torch==2.3.1 |
| 19 | +diff --git a/train.py b/train.py |
| 20 | +index 5c027f4..d21dac3 100644 |
| 21 | +--- a/train.py |
| 22 | ++++ b/train.py |
| 23 | +@@ -1,2 +1,5 @@ |
| 24 | ++import torch |
| 25 | ++ |
| 26 | + if __name__ == "__main__": |
| 27 | + print("train!") |
| 28 | ++ torch.rand(3,6) |
| 29 | +-- |
| 30 | +2.45.2 |
| 31 | + |
| 32 | + |
| 33 | +From 22dde1259c34a166d5a9335ebe5236e79541cc63 Mon Sep 17 00:00:00 2001 |
| 34 | +From: Eric Bower < [email protected]> |
| 35 | +Date: Tue, 23 Jul 2024 10:14:37 -0400 |
| 36 | +Subject: [PATCH 2/3] docs: readme |
| 37 | + |
| 38 | +--- |
| 39 | + README.md | 4 +++- |
| 40 | + 1 file changed, 3 insertions(+), 1 deletion(-) |
| 41 | + |
| 42 | +diff --git a/README.md b/README.md |
| 43 | +index 8f3a780..3043953 100644 |
| 44 | +--- a/README.md |
| 45 | ++++ b/README.md |
| 46 | +@@ -1,3 +1,5 @@ |
| 47 | + # Let's build an RNN |
| 48 | + |
| 49 | +-This repo demonstrates building an RNN using `pytorch` |
| 50 | ++This repo demonstrates building an RNN using `pytorch`. |
| 51 | ++ |
| 52 | ++Here is some more readme information. |
| 53 | +-- |
| 54 | +2.45.2 |
| 55 | + |
| 56 | + |
| 57 | +From b248060488df529b850060b3c86417bb87d490cc Mon Sep 17 00:00:00 2001 |
| 58 | +From: Eric Bower < [email protected]> |
| 59 | +Date: Tue, 23 Jul 2024 10:20:44 -0400 |
| 60 | +Subject: [PATCH 3/3] chore: make tensor 6x6 |
| 61 | + |
| 62 | +--- |
| 63 | + train.py | 4 +++- |
| 64 | + 1 file changed, 3 insertions(+), 1 deletion(-) |
| 65 | + |
| 66 | +diff --git a/train.py b/train.py |
| 67 | +index d21dac3..8cd47e0 100644 |
| 68 | +--- a/train.py |
| 69 | ++++ b/train.py |
| 70 | +@@ -2,4 +2,6 @@ import torch |
| 71 | + |
| 72 | + if __name__ == "__main__": |
| 73 | + print("train!") |
| 74 | +- torch.rand(3,6) |
| 75 | ++ # let's create a 6x6 tensor! |
| 76 | ++ tensor = torch.rand(6,6) |
| 77 | ++ print(tensor) |
| 78 | +-- |
| 79 | +2.45.2 |
| 80 | + |
0 commit comments