Fix typo in comment (#135111)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/135111
Approved by: https://github.com/aorenste, https://github.com/oulgen
This commit is contained in:
Bob Ren
2024-09-04 15:17:24 -07:00
committed by PyTorch MergeBot
parent 724faac260
commit 30b98940b8

View File

@@ -256,7 +256,7 @@ class FXGraphCacheLoadable:
# [Note: AOTAutogradCache and FXGraphCache Guard interactions]
# As mentioned, AOTAutograd takes in the symint inputs from dynamo's list of arguments.
# FXGraphCache serializes guards that are needed in the shape_env based on these symint inputs to the graph.
# he invariant that AOTAutograd uses here is that the sources for symints given to it by dynamo are exactly
# The invariant that AOTAutograd uses here is that the sources for symints given to it by dynamo are exactly
# the same as the ones it passes to inductor, for both the forward and backward passes.
# (This does not mean that the tensor values passed in are the same: only that their symints are).
# That is, AOTAutograd and Inductor never create new guards based on symints with different sources