Replace dtype static list with a reference to data type doc #2937
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2901
Description
in the pytorch dtype doc(link in below) is torch.bfloat16, but in tutorial istorch.bfloat , this might be mislead user to created dtype=torch.bfloat and get an error, might be better to make improvements:
tutorial link: https://pytorch.org/tutorials/beginner/introyt/tensors_deeper_tutorial.html
doc link: https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype
tutorial is
![image](https://private-user-images.githubusercontent.com/54812088/339358479-46a34a01-9805-46c9-9775-488476c2e108.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTY3ODksIm5iZiI6MTczOTIxNjQ4OSwicGF0aCI6Ii81NDgxMjA4OC8zMzkzNTg0NzktNDZhMzRhMDEtOTgwNS00NmM5LTk3NzUtNDg4NDc2YzJlMTA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE5NDEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhNWNhOWQ2NDYxMTM4NTA1NmUwMTM2OGEwZjJjZTJkNmQ3ODQyZTYzNWY0NGM2NTY0Nzk4YWRlMTAxOTZkMjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-Vpg1AA0mdDrPMZll75OT9ideScjqMB61t0oeU64HeQ)
torch.bfloat
Got error when try to create
![image](https://private-user-images.githubusercontent.com/54812088/339361613-9f7cd735-4b7b-47c9-8b0a-cb46ca39a198.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTY3ODksIm5iZiI6MTczOTIxNjQ4OSwicGF0aCI6Ii81NDgxMjA4OC8zMzkzNjE2MTMtOWY3Y2Q3MzUtNGI3Yi00N2M5LThiMGEtY2I0NmNhMzlhMTk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE5NDEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5N2RkNzc5ZTM2MDI3NTJiMzMwMmJjMGU4YTM0ZmY0N2YwNGY4MDE5ZGQyOWJhZTlhYzVlYzU3MTRjYjFjN2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wXEIPD8L2dyAe7Sq59wwD1YY6hMhtnAxwCypA50lRdA)
Should be
![image](https://private-user-images.githubusercontent.com/54812088/339361860-bf06bf88-553a-4760-be40-1b8136101e50.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTY3ODksIm5iZiI6MTczOTIxNjQ4OSwicGF0aCI6Ii81NDgxMjA4OC8zMzkzNjE4NjAtYmYwNmJmODgtNTUzYS00NzYwLWJlNDAtMWI4MTM2MTAxZTUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE5NDEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmMGM3ZmNiNDI5NmZhZGE4ODc0YTZlN2Y3MzVkZjU0ZGY5MzAyMmRlNmFmMzg1MzcwOGRiMzcyNjU2ZDg4YWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3PNdPDiZEDBcAPZVVPOyNy251r3jAFQlFREWQIqp32I)
dtype=torch.bfloat16
** Test Result: Local compile pages **
Checklist
cc @albanD @sekyondaMeta @svekars @kit1980 @brycebortree