Revert "Don't introduce new overload for SymInt (#83628)"

This reverts commit 9790d90e4b0288796ab44a6b4979db0a67580ba8.

Reverted https://github.com/pytorch/pytorch/pull/83628 on behalf of https://github.com/malfet due to Breaks internal builds, see D39076487
This commit is contained in:
PyTorch MergeBot
2022-08-27 01:23:17 +00:00
parent 38e5e4a85f
commit c7edcd6968
81 changed files with 729 additions and 766 deletions

View File

@ -136,10 +136,7 @@ def convert_arguments(f: NativeFunction) -> Tuple[List[Binding], List[str]]:
def argumenttype_ivalue_convert(
t: Type, arg_name: str, *, mutable: bool = False
) -> Tuple[str, CType, List[str], List[str]]:
# Unboxing is for mobile, which doesn't care about SymInts
ctype = cpp.argumenttype_type(
t=t, mutable=mutable, binds=arg_name, symint=False
).type
ctype = cpp.argumenttype_type(t=t, mutable=mutable, binds=arg_name).type
if isinstance(t, BaseType):
out_name = f"{arg_name}_base"