Skip to content

Commit

Permalink
Fix type for keep_inference_mutation flag (pytorch#114482)
Browse files Browse the repository at this point in the history
Pull Request resolved: pytorch#114482
Approved by: https://github.com/Skylion007
ghstack dependencies: pytorch#114421, pytorch#114479, pytorch#114481
  • Loading branch information
tugsbayasgalan authored and pytorchmergebot committed Nov 24, 2023
1 parent fa71f5e commit dad3cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_functorch/aot_autograd.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ class ViewAndMutationMeta:
num_intermediate_bases: int

# For inference only: instructs us to keep data-only input mutations directly in the graph
keep_input_mutations: int
keep_input_mutations: bool

# length = (# inputs w data mutations) + (# user outputs that are non_aliasing tensors)
# + (# intermediate bases)
Expand Down

0 comments on commit dad3cc4

Please sign in to comment.