File size: 749 Bytes
9dd3461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import torch
from .. import Tensor
from typing import Tuple, Optional
import builtins

class Parameter(Tensor):
    def __init__(self, data: Tensor=..., requires_grad: builtins.bool=...): ...

    ...

def is_lazy(param: Tensor): ...

class UninitializedParameter(Tensor):
    def __init__(self, data: Tensor=..., requires_grad: builtins.bool=...): ...

    def materialize(self, shape: Tuple[int, ...], device: Optional[torch.device] = None, dtype: Optional[torch.dtype] = None): ...
    ...

class UninitializedBuffer(Tensor):
    def __init__(self, data: Tensor=..., requires_grad: builtins.bool=...): ...

    def materialize(self, shape: Tuple[int, ...], device: Optional[torch.device] = None, dtype: Optional[torch.dtype] = None): ...
    ...