We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e79b58 commit c591d0fCopy full SHA for c591d0f
intermediate_source/_torch_export_nightly_tutorial.py
@@ -465,8 +465,8 @@ def nonzero(x):
465
@torch.library.register_fake("mylib::nonzero")
466
def _(x):
467
# Number of nonzero-elements is data-dependent.
468
- # Since we cannot peek at the data in an abstract impl,
469
- # we use the ctx object to construct a new symint that
+ # Since we cannot peek at the data in an abstract implementation,
+ # we use the `ctx` object to construct a new symint that
470
# represents the data-dependent size.
471
ctx = torch.library.get_ctx()
472
nnz = ctx.new_dynamic_size()
0 commit comments