From 2e4f1075622853ca6c8a7ac5493612b3686fe79f Mon Sep 17 00:00:00 2001 From: Claudio Scheer <claudioscheer@protonmail.com> Date: Tue, 31 Mar 2020 23:36:52 -0300 Subject: [PATCH] Remove numpy import from PyTorch --- mpl-xor/main.py | 1 - perceptron-or/pytorch.py | 1 - 2 files changed, 2 deletions(-) diff --git a/mpl-xor/main.py b/mpl-xor/main.py index 7350ed4..7d93ddf 100644 --- a/mpl-xor/main.py +++ b/mpl-xor/main.py @@ -1,6 +1,5 @@ import torch import torch.nn as nn -import numpy as np train_data = torch.tensor([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=torch.float).cuda() train_data_y = torch.tensor([[0], [1], [1], [1]], dtype=torch.float).cuda() diff --git a/perceptron-or/pytorch.py b/perceptron-or/pytorch.py index 67b59ad..5d6900a 100644 --- a/perceptron-or/pytorch.py +++ b/perceptron-or/pytorch.py @@ -1,6 +1,5 @@ import torch import torch.nn as nn -import numpy as np train_data = torch.tensor([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=torch.float).cuda() train_data_y = torch.tensor([[0], [1], [1], [1]], dtype=torch.float).cuda() -- GitLab