Skip to content

Commit 73ef8d2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 35c6030 commit 73ef8d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎thunder/core/symbol.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ def __call__(self, *args, **kwargs):
329329
if cd is not None and not cd.is_grad_enabled:
330330
flat_args, _ = tree_flatten((args, kwargs))
331331
flat_arg_ids = {id(arg) for arg in flat_args}
332+
332333
# If grad is disabled using `torch.no_grad` or `torch._C._set_grad_enabled(False)`,
333334
# tag the results with `DETACHED_AUTOGRAD_GRAPH` which makes this Symbol a constant for
334335
# vjp transform (applied later).

0 commit comments

Comments
 (0)