-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Term Entry] PyTorch Tensors .full() #5341
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @SaviDahegaonkar thank you for contributing to Docs. 😄
I've suggested changes for your entry, kindly review and modify them at your earliest, I would also request you to review some points mentioned here that would help you in your feedbacks as well 😃
Thank you!
@@ -0,0 +1,59 @@ | |||
--- | |||
Title: '.full()' | |||
Description: 'In PyTorch, the `.full()` function creates a tensor filled with a specified value and shape according according to the dimensions provided.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thr description should always start with a verb, in this case it can start with "Creates a tensor..".
## Codebyte Example | ||
|
||
```codebyte/python | ||
import torch | ||
|
||
# Create a 2x3 tensor filled with the value 10 | ||
tensor = torch.full((2, 3), 10) | ||
|
||
print(tensor) | ||
``` | ||
|
||
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this, as we don't require a running codebyte for Pytorch, since compiler doesn't support pytorch. Also remove the extra lines at the end
@SaviDahegaonkar can you make the required changes on priority? |
Co-authored-by: Mamta Wardhani <[email protected]>
Co-authored-by: Mamta Wardhani <[email protected]>
Co-authored-by: Mamta Wardhani <[email protected]>
Co-authored-by: Mamta Wardhani <[email protected]>
Co-authored-by: Mamta Wardhani <[email protected]>
Hello @mamtawardhani , I have made the changes, Please check them and let me know if any further changes are required. Thanks, |
fixed lint issues and prettified
Hey @SaviDahegaonkar closing this PR as it is not from the forked repository and directly from the main docs. Please raise another PR for this. Thank you 😃 |
Description
Created a new term entry for PyTorch tensors .full( ) function.
Issue Solved
#5304
Type of Change
Checklist
main
branch.Issues Solved
section.