-
Notifications
You must be signed in to change notification settings - Fork 25.6k
convert jit_language_reference.rst to jit_language_reference.md #155633
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/155633
Note: Links to docs will display an error until the docs builds have been completed. ❌ 29 New Failures, 6 Cancelled Jobs, 1 Unrelated FailureAs of commit fb99480 with merge base bb43ced ( NEW FAILURES - The following jobs have failed:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
||
.. _module attributes: | ||
(module-attributes)= | ||
(Module Attributes)= |
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.
(Module Attributes)= |
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.
there's a :any:
at line 146, not sure whether deleting (Module Attributes)=
will break that reference
> For example, assigning to `self` outside of the `__init__()` method: | ||
> | ||
> ``` | ||
> @torch.jit.script | ||
> class Foo: | ||
> def assign_x(self): | ||
> self.x = torch.rand(2, 3) | ||
> ``` | ||
> | ||
> Will result in: | ||
> | ||
> ``` | ||
> RuntimeError: | ||
> Tried to set nonexistent attribute: x. Did you forget to initialize it in __init__()?: | ||
> def assign_x(self): | ||
> self.x = torch.rand(2, 3) | ||
> ~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE | ||
> ``` |
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.
Not sure why there is a leading > here. Can you explain?
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.
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
@pytorchbot label "topic: docs" |
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.
LGTM
@pytorchbot merge -f "Docs only change. Do signal is green" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
``` | ||
|
||
.. _language-reference: | ||
(language-reference)= |
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.
@Rachel0619 shouldnt this be jit_language_reference
?
based on a reference here: https://raw.githubusercontent.com/pytorch/pytorch/refs/heads/main/docs/source/jit.rst
CC: @svekars
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.
Hi @thatgeeman I think in the below code (if that's what you are referring to), they are referencing jit_language_reference.md
file and jit_language_reference_v2.md
file instead of the headings.
CC: @svekars
.. toctree::
:maxdepth: 1
:caption: Language Reference
:hidden:
jit_language_reference
.. toctree::
:maxdepth: 1
jit_language_reference_v2
Yes that's true, that's for the clarification (y)
…On Mon, Jun 16, 2025, 06:37 Runtian (Rachel) Li ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In docs/source/jit_language_reference.md
<#155633 (comment)>:
>
-.. _language-reference:
+(language-reference)=
Hi @thatgeeman <https://github.com/thatgeeman> I think in the below code
(if that's what you are referring to), they are referencing
jit_language_reference.md file and jit_language_reference_v2.md file
instead of the headings.
CC: @svekars <https://github.com/svekars>
.. toctree::
:maxdepth: 1
:caption: Language Reference
:hidden:
jit_language_reference
.. toctree::
:maxdepth: 1
jit_language_reference_v2
—
Reply to this email directly, view it on GitHub
<#155633 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCJVYMTMN4NKZPID2WZJAT3DZCYBAVCNFSM6AAAAAB7A5HBK6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDSMZQGYYDMMRUGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Part of changes #155023 (parent PR #155429)
@pytorchbot label "topic: docs"
@pytorchbot label "topic: not user facing"
@pytorchbot label docathon-h1-2025
@pytorchbot label module: docs