1
0
This commit is contained in:
2024-10-05 22:43:47 +08:00
parent 176e643f20
commit 804b63b2a3
37 changed files with 5317 additions and 53 deletions

View File

@@ -39,7 +39,7 @@ def gradient_descent_runner(points, starting_b, starting_w, learningRate, num_it
def run():
points_np = np.genfromtxt("data1.csv", delimiter=',').astype(np.float32)
points = torch.tensor(points_np, device='cuda:5')
points = torch.tensor(points_np, device='cuda')
learning_rate = 0.0001
initial_b = 0.0
initial_w = 0.0