Eric Bower
·
2024-07-14
with-cover.patch
1From 71a58613493dd0211a576ed6531c5ee712a03ff3 Mon Sep 17 00:00:00 2001
2From: Eric Bower <me@erock.io>
3Date: Sun, 14 Jul 2024 07:14:44 -0400
4Subject: [PATCH 0/2] Add torch deps
5
6I took the liberty of adding a requirements file for python.
7
8Bob Sour (1):
9 chore: add torch to requirements
10
11Eric Bower (1):
12 feat: lets build an rnn
13
14 README.md | 4 ++--
15 requirements.txt | 1 +
16 train.py | 5 +++++
17 3 files changed, 8 insertions(+), 2 deletions(-)
18 create mode 100644 requirements.txt
19 create mode 100644 train.py
20
21--
222.45.2
23
24From 59456574a0bfee9f71c91c13046173c820152346 Mon Sep 17 00:00:00 2001
25From: Eric Bower <me@erock.io>
26Date: Wed, 3 Jul 2024 15:18:47 -0400
27Subject: [PATCH 1/2] feat: lets build an rnn
28
29---
30 README.md | 4 ++--
31 train.py | 2 ++
32 2 files changed, 4 insertions(+), 2 deletions(-)
33 create mode 100644 train.py
34
35diff --git a/README.md b/README.md
36index 586bc0d..8f3a780 100644
37--- a/README.md
38+++ b/README.md
39@@ -1,3 +1,3 @@
40-# test
41+# Let's build an RNN
42
43-testing git pr
44+This repo demonstrates building an RNN using `pytorch`
45diff --git a/train.py b/train.py
46new file mode 100644
47index 0000000..5c027f4
48--- /dev/null
49+++ b/train.py
50@@ -0,0 +1,2 @@
51+if __name__ == "__main__":
52+ print("train!")
53--
542.45.2
55
56
57From 71a58613493dd0211a576ed6531c5ee712a03ff3 Mon Sep 17 00:00:00 2001
58From: Bob Sour <bob@bower.sh>
59Date: Fri, 5 Jul 2024 18:57:03 +0000
60Subject: [PATCH 2/2] chore: add torch to requirements
61
62---
63 requirements.txt | 1 +
64 train.py | 3 +++
65 2 files changed, 4 insertions(+)
66 create mode 100644 requirements.txt
67
68diff --git a/requirements.txt b/requirements.txt
69new file mode 100644
70index 0000000..4968a39
71--- /dev/null
72+++ b/requirements.txt
73@@ -0,0 +1 @@
74+torch==2.3.1
75diff --git a/train.py b/train.py
76index 5c027f4..8f32fe2 100644
77--- a/train.py
78+++ b/train.py
79@@ -1,2 +1,5 @@
80+import torch
81+
82 if __name__ == "__main__":
83 print("train!")
84+ print(torch.rand(6,6))
85--
862.45.2
87