Skip to content

Instantly share code, notes, and snippets.

@Adityanagraj
Created May 29, 2020 03:35
Show Gist options
  • Save Adityanagraj/4be808120def97a22094277148312ddd to your computer and use it in GitHub Desktop.
Save Adityanagraj/4be808120def97a22094277148312ddd to your computer and use it in GitHub Desktop.
d=torch.ones(5,3)
d.fill_diagonal_(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment