Skip to content

Instantly share code, notes, and snippets.

@yingca1
Last active July 4, 2022 12:12
Show Gist options
  • Save yingca1/9b7b8ef5768964f8f094e6db18fc7f48 to your computer and use it in GitHub Desktop.
Save yingca1/9b7b8ef5768964f8f094e6db18fc7f48 to your computer and use it in GitHub Desktop.
import torch
torch.Tensor(1).cuda()
print("hello world!")
f = open("demofile2.txt", "a")
f.write("Now the file has more content!")
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment