Reland 2 Many symintifications (#87604) (#87980)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/87980
Approved by: https://github.com/ezyang
This commit is contained in:
albanD
2022-10-28 13:40:11 +00:00
committed by PyTorch MergeBot
parent ce3e0e9856
commit 8a9aca7b8d
29 changed files with 197 additions and 154 deletions

View File

@ -116,7 +116,9 @@ class ComputeCodegenUnboxedKernels:
# from wrapping/unwrapping TensorOptios.
# However, we would look to include default args for schema parsing.
# Default args only show up in the nonfaithful C++ API,
arg_default = cpp.default_expr(arg.argument.default, arg.argument.type)
arg_default = cpp.default_expr(
arg.argument.default, arg.argument.type, symint=False
)
if arg_default.startswith("{"):
arg_cpp = f"c10::IntArrayRef({arg_default})"
else: