mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 21:49:24 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user