Skip to content

Commit d167a20

Browse files
authored
compiler_toolkit: fix args access (#2067)
This PR fixes access to args; it's an attribute, not a variable in the scope. The method itself though would not be used because `should_check_address` seems to be always `False` and there doesn't seem to be a command line argument for it. Signed-off-by: Masaki Kozuki <[email protected]>
1 parent f5e3a84 commit d167a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtitan/experiments/compiler_toolkit/cudagraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def check_input_types(self, inputs) -> None:
9898

9999
def check_static_inputs_address(self) -> None:
100100
for i in self.static_input_indices:
101-
actual = args[i].data_ptr()
101+
actual = self.args[i].data_ptr()
102102
expected = self.input_addresses[i]
103103
assert expected == actual, (
104104
"Expected the same static tensor address but found "

0 commit comments

Comments
 (0)