mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
### Summary:
NOTE: This is a re-export of https://github.com/pytorch/pytorch/pull/161994 ; the changes between these two PRs is exclusively to the buck/build files
(Summary from #161994 )
Attempted rebase of https://github.com/pytorch/pytorch/pull/143712.
This reverts commit 6c713ccb5e.
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela
imported-using-ghimport
Test Plan: Imported from OSS
Differential Revision: D81524507
Pulled By: Lucaskabela
Pull Request resolved: https://github.com/pytorch/pytorch/pull/163769
Approved by: https://github.com/dolpm
Co-authored-by: Brian Hirsh <hirsheybar@fb.com>
17 lines
566 B
Python
17 lines
566 B
Python
from torch import Tensor
|
|
from torch.types import _bool
|
|
|
|
# Defined in torch/csrc/functionalization/Module.cpp
|
|
|
|
class ViewMeta:
|
|
has_symbolic_inputs: _bool
|
|
|
|
# Returns the list of ViewMeta instances of the given functional tensor.
|
|
#
|
|
# Although we do have python bindings for their types, we won't
|
|
# expose them here, since they should not be used by users.
|
|
def get_view_meta_sequence(tensor: Tensor) -> list[ViewMeta]: ...
|
|
|
|
# Applies the ViewMeta sequence on top of the given base.
|
|
def apply_view_meta_sequence(base: Tensor, sequence: list[ViewMeta]) -> Tensor: ...
|