pytorch / pytorch.github.io

The website for PyTorch

Home Page:https://pytorch.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

torch.empty example function contains typo

brandonfrulla opened this issue Β· comments

πŸ“š Documentation

Link to issue

I noticed a small typo in the documentation example at the bottom, and I wanted to report it so that it can be corrected. I may submit a PR for it later on, so if someone wants to, please feel free to assign it to me and I can take care of it this afternoon.

torch.empty((2,3), dtype=torch.int64)
^ in the above line, torch.int() is missing the '('

Suggested fix: Add the '(' that is missing from the torch.int() function.

I realized the typo was actually on my side the whole time, disregard.