Created
August 28, 2019 20:29
-
-
Save n0obcoder/36a5b85e548fbff81c7b28a8142dface to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # We also need to convert all the data into tensors before we could use them for training our model. | |
| data_x = torch.tensor([[x] for x in x_list], dtype = torch.float) | |
| data_y = torch.tensor([[y] for y in y_list], dtype = torch.float) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment