Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save n0obcoder/36a5b85e548fbff81c7b28a8142dface to your computer and use it in GitHub Desktop.

Select an option

Save n0obcoder/36a5b85e548fbff81c7b28a8142dface to your computer and use it in GitHub Desktop.
# 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