You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
566 B
17 lines
566 B
|
4 days ago
|
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: ...
|