Skip to content

Commit

Permalink
remove non-effect return-bool functions from graph (apache#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
superDong1998 authored Mar 22, 2024
2 parents a72d6f8 + 5c46c5a commit db17f8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/guard_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,9 @@ def set_if_inplace_return() -> None:
"flatten_parameters", "numel", "children",
"named_parameters", "_weights_have_changed",
"check_forward_args", "permute_hidden", "_check_input_dim",
"parameters", "_has_torch_function_unary"):
"parameters", "_has_torch_function_unary", "_is_tracing",
"is_tracing", "is_scripting", "get_autocast_gpu_dtype",
"is_autocast_enabled", "ndimension"):
return
if hasattr(func, "__module__"
) and func.__module__ == 'torch.autograd.profiler':
Expand Down

0 comments on commit db17f8f

Please sign in to comment.