mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[AOTI] Fix a typo in ExternKernel.codegen_const_args (#132191)
Differential Revision: [D60513923](https://our.internmc.facebook.com/intern/diff/D60513923) Pull Request resolved: https://github.com/pytorch/pytorch/pull/132191 Approved by: https://github.com/chenyang78
This commit is contained in:
parent
f467d55329
commit
97eba8e174
|
|
@ -4736,7 +4736,7 @@ class ExternKernel(InputsKernel):
|
|||
for i, x in enumerate(self.constant_args):
|
||||
idx = len(self.inputs) + i
|
||||
type_ = (
|
||||
self.arg_properties[i].get("type")
|
||||
self.arg_properties[idx].get("type")
|
||||
if self.arg_properties and idx < len(self.arg_properties)
|
||||
else None
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user