Revert "Proper view support for jagged layout NestedTensor (#113279)"

This reverts commit 5855c490f09a028bfdfefea8b93c9833eb55dc5c.

Reverted https://github.com/pytorch/pytorch/pull/113279 on behalf of https://github.com/jbschlosser due to Need to fix BC thing ([comment](https://github.com/pytorch/pytorch/pull/113279#issuecomment-2013899762))
This commit is contained in:
PyTorch MergeBot
2024-03-21 22:03:01 +00:00
parent 12e7602cf9
commit 224beecee6
17 changed files with 245 additions and 533 deletions

View File

@ -797,10 +797,9 @@ def signature_from_schema(
or name.startswith("new_")
or name.endswith("_like")
)
is_dummy_function = category_override == "dummy"
tensor_options_args: List[PythonArgument] = []
if (is_factory_function or is_like_or_new_function) and not is_dummy_function:
if is_factory_function or is_like_or_new_function:
def topt_default_init(name: str) -> Optional[str]:
topt_args = func.arguments.tensor_options