MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / __init__

Method __init__

Utility/Extensions/TensorExtension.py:45–50  ·  view source on GitHub ↗
(self, 
                     shape: torch.Size | Sequence[int] | None, 
                     grow_on: int, 
                     init_tensor: torch.Tensor | None = None,
                     init_val: int | float | None = None,
                     **kwargs)

Source from the content-addressed store, hash-verified

43 # so there is no significant discrepency between static analysis bahavior and actual runtime result.
44 class AutoScalingTensor(torch.Tensor):
45 def __init__(self,
46 shape: torch.Size | Sequence[int] | None,
47 grow_on: int,
48 init_tensor: torch.Tensor | None = None,
49 init_val: int | float | None = None,
50 **kwargs) -> None: ...
51 def __new__(cls, *args, **kwargs) -> "AutoScalingTensor": ...
52 def push(self, x: torch.Tensor) -> None: ...
53 @property

Callers

nothing calls this directly

Calls 1

_alloc_new_tensorMethod · 0.95

Tested by

no test coverage detected