Skip to content

Commit c591d0f

Browse files
Update
1 parent 2e79b58 commit c591d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intermediate_source/_torch_export_nightly_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ def nonzero(x):
465465
@torch.library.register_fake("mylib::nonzero")
466466
def _(x):
467467
# 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
468+
# Since we cannot peek at the data in an abstract implementation,
469+
# we use the `ctx` object to construct a new symint that
470470
# represents the data-dependent size.
471471
ctx = torch.library.get_ctx()
472472
nnz = ctx.new_dynamic_size()

0 commit comments

Comments
 (0)