id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
18,300
pytorch/vision
pytorch_vision/torchvision/models/feature_extraction.py
torchvision.models.feature_extraction.NodePathTracer
from collections import OrderedDict from typing import Any, Callable, Optional, Union import torch import re from torch import fx, nn class NodePathTracer(LeafModuleAwareTracer): """ NodePathTracer is an FX tracer that, for each operation, also records the name of the Node from which the operation originat...
class NodePathTracer(LeafModuleAwareTracer): ''' NodePathTracer is an FX tracer that, for each operation, also records the name of the Node from which the operation originated. A node name here is a `.` separated path walking the hierarchy from top level module down to leaf operation or leaf module...
5
3
19
1
10
8
3
1.2
1
5
0
0
4
2
4
25
97
9
40
17
33
48
36
15
31
7
3
3
11
18,301
pytorch/vision
pytorch_vision/torchvision/models/googlenet.py
torchvision.models.googlenet.BasicConv2d
import torch.nn.functional as F import torch.nn as nn from torch import Tensor from typing import Any, Callable, Optional class BasicConv2d(nn.Module): def __init__(self, in_channels: int, out_channels: int, **kwargs: Any) -> None: super().__init__() self.conv = nn.Conv2d(in_channels, out_channels...
class BasicConv2d(nn.Module): def __init__(self, in_channels: int, out_channels: int, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
4
0
4
0
1
0
1
4
0
1
2
2
2
12
10
1
9
5
6
0
9
5
6
1
1
0
2
18,302
pytorch/vision
pytorch_vision/torchvision/models/googlenet.py
torchvision.models.googlenet.GoogLeNet
import torch.nn.functional as F from ..utils import _log_api_usage_once from torch import Tensor from typing import Any, Callable, Optional import warnings import torch.nn as nn import torch class GoogLeNet(nn.Module): __constants__ = ['aux_logits', 'transform_input'] def __init__(self, num_classes: int=1000,...
class GoogLeNet(nn.Module): def __init__(self, num_classes: int=1000, aux_logits: bool=True, transform_input: bool=False, init_weights: Optional[bool]=None, blocks: Optional[list[Callable[..., nn.Module]]]=None, dropout: float=0.2, dropout_aux: float=0.7) -> None: pass def _transform_input(self, x: T...
7
0
29
2
23
5
4
0.21
1
10
3
1
5
23
5
15
153
17
116
51
100
24
97
41
91
9
1
3
21
18,303
pytorch/vision
pytorch_vision/torchvision/models/googlenet.py
torchvision.models.googlenet.GoogLeNet_Weights
from ..transforms._presets import ImageClassification from functools import partial from ._meta import _IMAGENET_CATEGORIES from ._api import register_model, Weights, WeightsEnum class GoogLeNet_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/googlenet-1378be20.pth', transfor...
class GoogLeNet_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
21
0
21
3
20
1
3
3
2
0
5
0
0
18,304
pytorch/vision
pytorch_vision/torchvision/models/googlenet.py
torchvision.models.googlenet.Inception
import torch.nn as nn import torch from typing import Any, Callable, Optional import torch.nn.functional as F from torch import Tensor class Inception(nn.Module): def __init__(self, in_channels: int, ch1x1: int, ch3x3red: int, ch3x3: int, ch5x5red: int, ch5x5: int, pool_proj: int, conv_block: Optional[Callable[.....
class Inception(nn.Module): def __init__(self, in_channels: int, ch1x1: int, ch3x3red: int, ch3x3: int, ch5x5red: int, ch5x5: int, pool_proj: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: pass def _forward(self, x: Tensor) -> list[Tensor]: pass def forward(self, x: T...
4
0
14
1
12
1
1
0.05
1
4
1
1
3
4
3
13
45
6
37
24
23
2
19
14
15
2
1
1
4
18,305
pytorch/vision
pytorch_vision/torchvision/models/googlenet.py
torchvision.models.googlenet.InceptionAux
import torch from torch import Tensor from typing import Any, Callable, Optional import torch.nn as nn import torch.nn.functional as F class InceptionAux(nn.Module): def __init__(self, in_channels: int, num_classes: int, conv_block: Optional[Callable[..., nn.Module]]=None, dropout: float=0.7) -> None: sup...
class InceptionAux(nn.Module): def __init__(self, in_channels: int, num_classes: int, conv_block: Optional[Callable[..., nn.Module]]=None, dropout: float=0.7) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
16
1
11
4
2
0.3
1
5
1
1
2
4
2
12
33
3
23
13
14
7
17
7
14
2
1
1
3
18,306
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.BasicConv2d
import torch.nn.functional as F from typing import Any, Callable, Optional from torch import nn, Tensor class BasicConv2d(nn.Module): def __init__(self, in_channels: int, out_channels: int, **kwargs: Any) -> None: super().__init__() self.conv = nn.Conv2d(in_channels, out_channels, bias=False, **kw...
class BasicConv2d(nn.Module): def __init__(self, in_channels: int, out_channels: int, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
4
0
4
0
1
0
1
4
0
1
2
2
2
12
10
1
9
5
6
0
9
5
6
1
1
0
2
18,307
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.Inception3
import warnings from typing import Any, Callable, Optional import torch from ..utils import _log_api_usage_once from torch import nn, Tensor import torch.nn.functional as F class Inception3(nn.Module): def __init__(self, num_classes: int=1000, aux_logits: bool=True, transform_input: bool=False, inception_blocks: ...
class Inception3(nn.Module): def __init__(self, num_classes: int=1000, aux_logits: bool=True, transform_input: bool=False, inception_blocks: Optional[list[Callable[..., nn.Module]]]=None, init_weights: Optional[bool]=None, dropout: float=0.5) -> None: pass def _transform_input(self, x: Tensor) -> Ten...
7
0
28
0
23
6
4
0.24
1
14
7
1
5
24
5
15
146
5
116
54
101
28
99
45
93
10
1
3
20
18,308
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.InceptionA
from typing import Any, Callable, Optional import torch from torch import nn, Tensor import torch.nn.functional as F class InceptionA(nn.Module): def __init__(self, in_channels: int, pool_features: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: super().__init__() if conv_block ...
class InceptionA(nn.Module): def __init__(self, in_channels: int, pool_features: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: pass def _forward(self, x: Tensor) -> list[Tensor]: pass def forward(self, x: Tensor) -> Tensor: pass
4
0
11
2
9
0
1
0
1
4
1
1
3
7
3
13
37
9
28
19
22
0
26
17
22
2
1
1
4
18,309
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.InceptionAux
from typing import Any, Callable, Optional from torch import nn, Tensor import torch.nn.functional as F import torch class InceptionAux(nn.Module): def __init__(self, in_channels: int, num_classes: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: super().__init__() if conv_block ...
class InceptionAux(nn.Module): def __init__(self, in_channels: int, num_classes: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
14
0
10
5
2
0.5
1
4
1
1
2
3
2
12
29
1
20
8
15
10
18
6
15
2
1
1
3
18,310
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.InceptionB
import torch import torch.nn.functional as F from torch import nn, Tensor from typing import Any, Callable, Optional class InceptionB(nn.Module): def __init__(self, in_channels: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: super().__init__() if conv_block is None: ...
class InceptionB(nn.Module): def __init__(self, in_channels: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: pass def _forward(self, x: Tensor) -> list[Tensor]: pass def forward(self, x: Tensor) -> Tensor: pass
4
0
8
1
6
0
1
0
1
4
1
1
3
4
3
13
26
6
20
13
16
0
20
13
16
2
1
1
4
18,311
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.InceptionC
from typing import Any, Callable, Optional import torch.nn.functional as F import torch from torch import nn, Tensor class InceptionC(nn.Module): def __init__(self, in_channels: int, channels_7x7: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: super().__init__() if conv_block i...
class InceptionC(nn.Module): def __init__(self, in_channels: int, channels_7x7: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: pass def _forward(self, x: Tensor) -> list[Tensor]: pass def forward(self, x: Tensor) -> Tensor: pass
4
0
14
2
11
0
1
0
1
4
1
1
3
10
3
13
44
9
35
23
29
0
33
21
29
2
1
1
4
18,312
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.InceptionD
import torch import torch.nn.functional as F from typing import Any, Callable, Optional from torch import nn, Tensor class InceptionD(nn.Module): def __init__(self, in_channels: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: super().__init__() if conv_block is None: ...
class InceptionD(nn.Module): def __init__(self, in_channels: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: pass def _forward(self, x: Tensor) -> list[Tensor]: pass def forward(self, x: Tensor) -> Tensor: pass
4
0
9
1
8
0
1
0
1
4
1
1
3
6
3
13
29
5
24
15
20
0
24
15
20
2
1
1
4
18,313
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.InceptionE
from typing import Any, Callable, Optional import torch import torch.nn.functional as F from torch import nn, Tensor class InceptionE(nn.Module): def __init__(self, in_channels: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: super().__init__() if conv_block is None: ...
class InceptionE(nn.Module): def __init__(self, in_channels: int, conv_block: Optional[Callable[..., nn.Module]]=None) -> None: pass def _forward(self, x: Tensor) -> list[Tensor]: pass def forward(self, x: Tensor) -> Tensor: pass
4
0
14
2
12
0
1
0
1
4
1
1
3
9
3
13
45
9
36
19
32
0
30
19
26
2
1
1
4
18,314
pytorch/vision
pytorch_vision/torchvision/models/inception.py
torchvision.models.inception.Inception_V3_Weights
from ..transforms._presets import ImageClassification from ._api import register_model, Weights, WeightsEnum from ._meta import _IMAGENET_CATEGORIES from functools import partial class Inception_V3_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/inception_v3_google-0cc3c7bd.p...
class Inception_V3_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
21
0
21
3
20
1
3
3
2
0
5
0
0
18,315
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.MBConv
from torchvision.ops.stochastic_depth import StochasticDepth from collections import OrderedDict from torchvision.ops.misc import Conv2dNormActivation, SqueezeExcitation from typing import Any, Callable, Optional from collections.abc import Sequence from torch import nn, Tensor class MBConv(nn.Module): """MBConv: ...
class MBConv(nn.Module): '''MBConv: Mobile Inverted Residual Bottleneck. Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels. expansion_ratio (float): Expansion ratio in the bottleneck. squeeze_ratio (float): Squeeze ratio in the SE L...
3
2
35
3
29
5
3
0.36
1
8
3
0
2
3
2
12
85
9
59
21
46
21
28
11
25
4
1
2
5
18,316
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.MaxVit
from torchvision.ops.misc import Conv2dNormActivation, SqueezeExcitation from functools import partial from torch import nn, Tensor from typing import Any, Callable, Optional import numpy as np from torchvision.utils import _log_api_usage_once class MaxVit(nn.Module): """ Implements MaxVit Transformer from the...
class MaxVit(nn.Module): ''' Implements MaxVit Transformer from the `MaxViT: Multi-Axis Vision Transformer <https://arxiv.org/abs/2204.01697>`_ paper. Args: input_size (Tuple[int, int]): Size of the input image. stem_channels (int): Number of channels in the stem. partition_size (in...
4
1
45
3
34
8
5
0.43
1
10
2
0
3
4
3
13
159
13
103
35
82
44
42
18
38
7
1
3
14
18,317
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.MaxVitBlock
from typing import Any, Callable, Optional from torch import nn, Tensor class MaxVitBlock(nn.Module): """ A MaxVit block consisting of `n_layers` MaxVit layers. Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels. expansion_ratio (float...
class MaxVitBlock(nn.Module): ''' A MaxVit block consisting of `n_layers` MaxVit layers. Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels. expansion_ratio (float): Expansion ratio in the bottleneck. squeeze_ratio (float): Sque...
3
2
30
1
23
6
4
0.66
1
7
1
0
2
2
2
12
83
5
47
24
28
31
14
8
11
5
1
1
7
18,318
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.MaxVitLayer
from typing import Any, Callable, Optional from torch import nn, Tensor from collections import OrderedDict class MaxVitLayer(nn.Module): """ MaxVit layer consisting of a MBConv layer followed by a PartitionAttentionLayer with `window` and a PartitionAttentionLayer with `grid`. Args: in_channels (...
class MaxVitLayer(nn.Module): ''' MaxVit layer consisting of a MBConv layer followed by a PartitionAttentionLayer with `window` and a PartitionAttentionLayer with `grid`. Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels. expansion_rati...
3
2
37
1
30
6
1
0.5
1
7
2
0
2
1
2
12
95
5
60
21
41
30
11
5
8
1
1
0
2
18,319
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.MaxVit_T_Weights
from torchvision.models._api import register_model, Weights, WeightsEnum from torchvision.transforms._presets import ImageClassification, InterpolationMode from torchvision.models._meta import _IMAGENET_CATEGORIES from functools import partial class MaxVit_T_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https...
class MaxVit_T_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.08
1
0
0
0
0
0
0
55
25
0
24
3
23
2
3
3
2
0
5
0
0
18,320
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.PartitionAttentionLayer
from torchvision.ops.stochastic_depth import StochasticDepth from typing import Any, Callable, Optional import torch.nn.functional as F from torch import nn, Tensor import torch class PartitionAttentionLayer(nn.Module): """ Layer for partitioning the input tensor into non-overlapping windows and applying atten...
class PartitionAttentionLayer(nn.Module): ''' Layer for partitioning the input tensor into non-overlapping windows and applying attention to each window. Args: in_channels (int): Number of input channels. head_dim (int): Dimension of each attention head. partition_size (int): Size o...
3
2
42
5
29
8
3
0.51
1
11
5
0
2
14
2
12
102
13
59
30
43
30
30
17
27
5
1
1
6
18,321
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.RelativePositionalMultiHeadAttention
import torch.nn.functional as F import torch import math from torch import nn, Tensor class RelativePositionalMultiHeadAttention(nn.Module): """Relative Positional Multi-Head Attention. Args: feat_dim (int): Number of input features. head_dim (int): Number of features per head. max_seq...
class RelativePositionalMultiHeadAttention(nn.Module): '''Relative Positional Multi-Head Attention. Args: feat_dim (int): Number of input features. head_dim (int): Number of features per head. max_seq_len (int): Maximum sequence length. ''' def __init__(self, feat_dim: int, hea...
4
2
20
4
14
3
1
0.35
1
5
0
0
3
8
3
13
71
15
43
26
34
15
36
21
32
2
1
1
4
18,322
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.SwapAxes
import torch import torch.nn.functional as F from torch import nn, Tensor class SwapAxes(nn.Module): """Permute the axes of a tensor.""" def __init__(self, a: int, b: int) -> None: super().__init__() self.a = a self.b = b def forward(self, x: torch.Tensor) -> torch.Tensor: ...
class SwapAxes(nn.Module): '''Permute the axes of a tensor.''' def __init__(self, a: int, b: int) -> None: pass def forward(self, x: torch.Tensor) -> torch.Tensor: pass
3
1
4
0
4
0
1
0.13
1
3
0
0
2
2
2
12
11
2
8
6
5
1
8
6
5
1
1
0
2
18,323
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.WindowDepartition
from torch import nn, Tensor class WindowDepartition(nn.Module): """ Departition the input tensor of non-overlapping windows into a feature volume of layout [B, C, H, W]. """ def __init__(self) -> None: super().__init__() def forward(self, x: Tensor, p: int, h_partitions: int, w_partition...
class WindowDepartition(nn.Module): ''' Departition the input tensor of non-overlapping windows into a feature volume of layout [B, C, H, W]. ''' def __init__(self) -> None: pass def forward(self, x: Tensor, p: int, h_partitions: int, w_partitions: int) -> Tensor: ''' Args...
3
2
11
0
5
6
1
1.36
1
3
0
0
2
0
2
12
28
2
11
6
8
15
11
6
8
1
1
0
2
18,324
pytorch/vision
pytorch_vision/torchvision/models/maxvit.py
torchvision.models.maxvit.WindowPartition
from torch import nn, Tensor class WindowPartition(nn.Module): """ Partition the input tensor into non-overlapping windows. """ def __init__(self) -> None: super().__init__() def forward(self, x: Tensor, p: int) -> Tensor: """ Args: x (Tensor): Input tensor wit...
class WindowPartition(nn.Module): ''' Partition the input tensor into non-overlapping windows. ''' def __init__(self) -> None: pass def forward(self, x: Tensor, p: int) -> Tensor: ''' Args: x (Tensor): Input tensor with expected layout of [B, C, H, W]. ...
3
2
9
0
5
5
1
1.2
1
3
0
0
2
0
2
12
24
2
10
5
7
12
10
5
7
1
1
0
2
18,325
pytorch/vision
pytorch_vision/torchvision/models/mnasnet.py
torchvision.models.mnasnet.MNASNet
from ..utils import _log_api_usage_once import torch import torch.nn as nn import warnings from torch import Tensor class MNASNet(torch.nn.Module): """MNASNet, as described in https://arxiv.org/abs/1807.11626. This implements the B1 variant of the model. >>> model = MNASNet(1.0, num_classes=1000) >>> x...
class MNASNet(torch.nn.Module): '''MNASNet, as described in https://arxiv.org/abs/1807.11626. This implements the B1 variant of the model. >>> model = MNASNet(1.0, num_classes=1000) >>> x = torch.rand(1, 3, 224, 224) >>> y = model(x) >>> y.dim() 2 >>> y.nelement() 1000 ''' ...
4
1
33
1
28
3
4
0.24
1
9
0
0
3
4
3
13
115
8
86
25
73
21
38
16
34
7
1
3
12
18,326
pytorch/vision
pytorch_vision/torchvision/models/mnasnet.py
torchvision.models.mnasnet.MNASNet0_5_Weights
from ..transforms._presets import ImageClassification from ._api import register_model, Weights, WeightsEnum from functools import partial class MNASNet0_5_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/mnasnet0.5_top1_67.823-3ffadce67e.pth', transforms=partial(ImageClassifi...
class MNASNet0_5_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
19
0
19
3
18
0
3
3
2
0
5
0
0
18,327
pytorch/vision
pytorch_vision/torchvision/models/mnasnet.py
torchvision.models.mnasnet.MNASNet0_75_Weights
from functools import partial from ._api import register_model, Weights, WeightsEnum from ..transforms._presets import ImageClassification class MNASNet0_75_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/mnasnet0_75-7090bc5f.pth', transforms=partial(ImageClassification, crop...
class MNASNet0_75_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
23
0
23
3
22
0
3
3
2
0
5
0
0
18,328
pytorch/vision
pytorch_vision/torchvision/models/mnasnet.py
torchvision.models.mnasnet.MNASNet1_0_Weights
from ..transforms._presets import ImageClassification from ._api import register_model, Weights, WeightsEnum from functools import partial class MNASNet1_0_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/mnasnet1.0_top1_73.512-f206786ef8.pth', transforms=partial(ImageClassifi...
class MNASNet1_0_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
19
0
19
3
18
0
3
3
2
0
5
0
0
18,329
pytorch/vision
pytorch_vision/torchvision/models/mnasnet.py
torchvision.models.mnasnet.MNASNet1_3_Weights
from functools import partial from ._api import register_model, Weights, WeightsEnum from ..transforms._presets import ImageClassification class MNASNet1_3_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/mnasnet1_3-a4c69d6f.pth', transforms=partial(ImageClassification, crop_s...
class MNASNet1_3_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
23
0
23
3
22
0
3
3
2
0
5
0
0
18,330
pytorch/vision
pytorch_vision/torchvision/models/mnasnet.py
torchvision.models.mnasnet._InvertedResidual
import torch.nn as nn from torch import Tensor class _InvertedResidual(nn.Module): def __init__(self, in_ch: int, out_ch: int, kernel_size: int, stride: int, expansion_factor: int, bn_momentum: float=0.1) -> None: super().__init__() if stride not in [1, 2]: raise ValueError(f'stride sh...
class _InvertedResidual(nn.Module): def __init__(self, in_ch: int, out_ch: int, kernel_size: int, stride: int, expansion_factor: int, bn_momentum: float=0.1) -> None: pass def forward(self, input: Tensor) -> Tensor: pass
3
0
14
0
13
2
3
0.12
1
5
0
0
2
2
2
12
30
1
26
8
21
3
14
6
11
3
1
1
5
18,331
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv2.py
torchvision.models.mobilenetv2.InvertedResidual
from torch import nn, Tensor from typing import Any, Callable, Optional from ..ops.misc import Conv2dNormActivation class InvertedResidual(nn.Module): def __init__(self, inp: int, oup: int, stride: int, expand_ratio: int, norm_layer: Optional[Callable[..., nn.Module]]=None) -> None: super().__init__() ...
class InvertedResidual(nn.Module): def __init__(self, inp: int, oup: int, stride: int, expand_ratio: int, norm_layer: Optional[Callable[..., nn.Module]]=None) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
22
2
19
2
3
0.08
1
5
1
1
2
5
2
12
46
4
39
12
34
3
21
10
18
4
1
1
6
18,332
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv2.py
torchvision.models.mobilenetv2.MobileNetV2
from torch import nn, Tensor from ..ops.misc import Conv2dNormActivation from ..utils import _log_api_usage_once import torch from typing import Any, Callable, Optional from ._utils import _make_divisible, _ovewrite_named_param, handle_legacy_interface class MobileNetV2(nn.Module): def __init__(self, num_classes:...
class MobileNetV2(nn.Module): def __init__(self, num_classes: int=1000, width_mult: float=1.0, inverted_residual_setting: Optional[list[list[int]]]=None, round_nearest: int=8, block: Optional[Callable[..., nn.Module]]=None, norm_layer: Optional[Callable[..., nn.Module]]=None, dropout: float=0.2) -> None: ...
4
1
35
3
24
8
5
0.32
1
8
2
1
3
3
3
13
108
12
73
24
60
23
43
15
39
13
1
3
15
18,333
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv2.py
torchvision.models.mobilenetv2.MobileNet_V2_Weights
from ..transforms._presets import ImageClassification from ._api import register_model, Weights, WeightsEnum from functools import partial class MobileNet_V2_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/mobilenet_v2-b0353104.pth', transforms=partial(ImageClassification, cr...
class MobileNet_V2_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
40
0
40
4
39
2
4
4
3
0
5
0
0
18,334
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv3.py
torchvision.models.mobilenetv3.InvertedResidual
from functools import partial from typing import Any, Callable, Optional from torch import nn, Tensor from ..ops.misc import Conv2dNormActivation, SqueezeExcitation as SElayer from ._utils import _make_divisible, _ovewrite_named_param, handle_legacy_interface class InvertedResidual(nn.Module): def __init__(self, ...
class InvertedResidual(nn.Module): def __init__(self, cnf: InvertedResidualConfig, norm_layer: Callable[..., nn.Module], se_layer: Callable[..., nn.Module]=partial(SElayer, scale_activation=nn.Hardsigmoid)): pass def forward(self, input: Tensor) -> Tensor: pass
3
0
30
3
26
2
4
0.08
1
6
2
1
2
4
2
12
63
7
52
17
44
4
24
12
21
6
1
1
8
18,335
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv3.py
torchvision.models.mobilenetv3.InvertedResidualConfig
from ._utils import _make_divisible, _ovewrite_named_param, handle_legacy_interface class InvertedResidualConfig: def __init__(self, input_channels: int, kernel: int, expanded_channels: int, out_channels: int, use_se: bool, activation: str, stride: int, dilation: int, width_mult: float): self.input_channe...
class InvertedResidualConfig: def __init__(self, input_channels: int, kernel: int, expanded_channels: int, out_channels: int, use_se: bool, activation: str, stride: int, dilation: int, width_mult: float): pass @staticmethod def adjust_channels(channels: int, width_mult: float): pass
4
0
11
0
11
0
1
0.04
0
4
0
0
1
8
2
2
26
1
24
23
9
1
12
11
9
1
0
0
2
18,336
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv3.py
torchvision.models.mobilenetv3.MobileNetV3
from functools import partial from ..utils import _log_api_usage_once from typing import Any, Callable, Optional from ..ops.misc import Conv2dNormActivation, SqueezeExcitation as SElayer from collections.abc import Sequence from torch import nn, Tensor import torch class MobileNetV3(nn.Module): def __init__(self,...
class MobileNetV3(nn.Module): def __init__(self, inverted_residual_setting: list[InvertedResidualConfig], last_channel: int, num_classes: int=1000, block: Optional[Callable[..., nn.Module]]=None, norm_layer: Optional[Callable[..., nn.Module]]=None, dropout: float=0.2, **kwargs: Any) -> None: ''' M...
4
1
34
4
25
4
4
0.17
1
11
3
1
3
3
3
13
104
15
76
22
63
13
39
13
35
11
1
3
13
18,337
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv3.py
torchvision.models.mobilenetv3.MobileNet_V3_Large_Weights
from functools import partial from ..transforms._presets import ImageClassification from ._api import register_model, Weights, WeightsEnum class MobileNet_V3_Large_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/mobilenet_v3_large-8738ca79.pth', transforms=partial(ImageClassi...
class MobileNet_V3_Large_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,338
pytorch/vision
pytorch_vision/torchvision/models/mobilenetv3.py
torchvision.models.mobilenetv3.MobileNet_V3_Small_Weights
from ..transforms._presets import ImageClassification from ._api import register_model, Weights, WeightsEnum from functools import partial class MobileNet_V3_Small_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/mobilenet_v3_small-047dcff4.pth', transforms=partial(ImageClassi...
class MobileNet_V3_Small_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
22
0
22
3
21
1
3
3
2
0
5
0
0
18,339
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.BottleneckBlock
import torch.nn as nn from torchvision.ops import Conv2dNormActivation class BottleneckBlock(nn.Module): """Slightly modified BottleNeck block (extra relu and biases)""" def __init__(self, in_channels, out_channels, *, norm_layer, stride=1): super().__init__() self.convnormrelu1 = Conv2dNormAc...
class BottleneckBlock(nn.Module): '''Slightly modified BottleNeck block (extra relu and biases)''' def __init__(self, in_channels, out_channels, *, norm_layer, stride=1): pass def forward(self, x): pass
3
1
18
2
16
1
2
0.06
1
2
1
0
2
5
2
12
40
6
32
9
29
2
17
9
14
2
1
1
3
18,340
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.ConvGRU
import torch import torch.nn.functional as F import torch.nn as nn class ConvGRU(nn.Module): """Convolutional Gru unit.""" def __init__(self, *, input_size, hidden_size, kernel_size, padding): super().__init__() self.convz = nn.Conv2d(hidden_size + input_size, hidden_size, kernel_size=kernel_s...
class ConvGRU(nn.Module): '''Convolutional Gru unit.''' def __init__(self, *, input_size, hidden_size, kernel_size, padding): pass def forward(self, h, x): pass
3
1
6
0
6
0
1
0.08
1
1
0
1
2
3
2
12
16
2
13
10
10
1
13
10
10
1
1
0
2
18,341
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.CorrBlock
from torch import Tensor import torch from ._utils import grid_sample, make_coords_grid, upsample_flow import torch.nn.functional as F import torch.nn as nn class CorrBlock(nn.Module): """The correlation block. Creates a correlation pyramid with ``num_levels`` levels from the outputs of the feature encoder, ...
class CorrBlock(nn.Module): '''The correlation block. Creates a correlation pyramid with ``num_levels`` levels from the outputs of the feature encoder, and then indexes from this pyramid to create correlation features. The "indexing" of a given centroid pixel x' is done by concatenating its surrounding...
5
3
21
3
14
5
2
0.44
1
5
0
0
4
4
4
14
95
18
57
25
52
25
46
25
41
4
1
1
9
18,342
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.FeatureEncoder
from torchvision.ops import Conv2dNormActivation import torch.nn as nn class FeatureEncoder(nn.Module): """The feature encoder, used both as the actual feature encoder, and as the context encoder. It must downsample its input by 8. """ def __init__(self, *, block=ResidualBlock, layers=(64, 64, 96, 12...
class FeatureEncoder(nn.Module): '''The feature encoder, used both as the actual feature encoder, and as the context encoder. It must downsample its input by 8. ''' def __init__(self, *, block=ResidualBlock, layers=(64, 64, 96, 128, 256), strides=(2, 1, 2, 2), norm_layer=nn.BatchNorm2d): pass ...
4
1
15
3
12
0
3
0.11
1
6
2
1
3
7
3
13
53
13
36
17
30
4
31
15
27
7
1
3
9
18,343
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.FlowHead
import torch.nn as nn class FlowHead(nn.Module): """Flow head, part of the update block. Takes the hidden state of the recurrent unit as input, and outputs the predicted "delta flow". """ def __init__(self, *, in_channels, hidden_size): super().__init__() self.conv1 = nn.Conv2d(in_cha...
class FlowHead(nn.Module): '''Flow head, part of the update block. Takes the hidden state of the recurrent unit as input, and outputs the predicted "delta flow". ''' def __init__(self, *, in_channels, hidden_size): pass def forward(self, x): pass
3
1
4
0
4
0
1
0.38
1
1
0
0
2
3
2
12
14
3
8
6
5
3
8
6
5
1
1
0
2
18,344
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.MaskPredictor
import torch.nn as nn from torchvision.ops import Conv2dNormActivation class MaskPredictor(nn.Module): """Mask predictor to be used when upsampling the predicted flow. It takes the hidden state of the recurrent unit as input and outputs the mask. This is not used in the raft-small model. """ def ...
class MaskPredictor(nn.Module): '''Mask predictor to be used when upsampling the predicted flow. It takes the hidden state of the recurrent unit as input and outputs the mask. This is not used in the raft-small model. ''' def __init__(self, *, in_channels, hidden_size, multiplier=0.25): pa...
3
1
8
1
5
3
1
1
1
2
1
1
2
3
2
12
24
4
10
6
7
10
10
6
7
1
1
0
2
18,345
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.MotionEncoder
import torch.nn as nn import torch.nn.functional as F import torch from torchvision.ops import Conv2dNormActivation class MotionEncoder(nn.Module): """The motion encoder, part of the update block. Takes the current predicted flow and the correlation features as input and returns an encoded version of these. ...
class MotionEncoder(nn.Module): '''The motion encoder, part of the update block. Takes the current predicted flow and the correlation features as input and returns an encoded version of these. ''' def __init__(self, *, in_channels_corr, corr_layers=(256, 192), flow_layers=(128, 64), out_channels=128):...
3
1
17
4
13
1
3
0.15
1
3
1
0
2
6
2
12
41
10
27
12
24
4
24
12
21
4
1
1
5
18,346
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.RAFT
import torch.nn as nn import torch.nn.functional as F from ._utils import grid_sample, make_coords_grid, upsample_flow import torch from ...utils import _log_api_usage_once class RAFT(nn.Module): def __init__(self, *, feature_encoder, context_encoder, corr_block, update_block, mask_predictor=None): """RAF...
class RAFT(nn.Module): def __init__(self, *, feature_encoder, context_encoder, corr_block, update_block, mask_predictor=None): '''RAFT model from `RAFT: Recurrent All Pairs Field Transforms for Optical Flow <https://arxiv.org/abs/2003.12039>`_. args: feature_encoder (nn.Module)...
3
1
49
11
23
16
5
0.68
1
4
0
0
2
5
2
12
100
22
47
23
44
32
45
23
42
8
1
1
10
18,347
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.Raft_Large_Weights
from ...transforms._presets import OpticalFlow from .._api import register_model, Weights, WeightsEnum class Raft_Large_Weights(WeightsEnum): """The metrics reported here are as follows. ``epe`` is the "end-point-error" and indicates how far (in pixels) the predicted flow is from its true value. This is a...
class Raft_Large_Weights(WeightsEnum): '''The metrics reported here are as follows. ``epe`` is the "end-point-error" and indicates how far (in pixels) the predicted flow is from its true value. This is averaged over all pixels of all images. ``per_image_epe`` is similar, but the average is different: ...
1
1
0
0
0
0
0
0.1
1
0
0
0
0
0
0
55
156
8
134
8
133
14
8
8
7
0
5
0
0
18,348
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.Raft_Small_Weights
from ...transforms._presets import OpticalFlow from .._api import register_model, Weights, WeightsEnum class Raft_Small_Weights(WeightsEnum): """The metrics reported here are as follows. ``epe`` is the "end-point-error" and indicates how far (in pixels) the predicted flow is from its true value. This is a...
class Raft_Small_Weights(WeightsEnum): '''The metrics reported here are as follows. ``epe`` is the "end-point-error" and indicates how far (in pixels) the predicted flow is from its true value. This is averaged over all pixels of all images. ``per_image_epe`` is similar, but the average is different: ...
1
1
0
0
0
0
0
0.3
1
0
0
0
0
0
0
55
55
3
40
4
39
12
4
4
3
0
5
0
0
18,349
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.RecurrentBlock
import torch.nn as nn class RecurrentBlock(nn.Module): """Recurrent block, part of the update block. Takes the current hidden state and the concatenation of (motion encoder output, context) as input. Returns an updated hidden state. """ def __init__(self, *, input_size, hidden_size, kernel_size=(...
class RecurrentBlock(nn.Module): '''Recurrent block, part of the update block. Takes the current hidden state and the concatenation of (motion encoder output, context) as input. Returns an updated hidden state. ''' def __init__(self, *, input_size, hidden_size, kernel_size=((1, 5), (5, 1)), paddin...
3
1
13
2
11
0
3
0.17
1
3
1
0
2
3
2
12
33
6
23
6
20
4
16
6
13
4
1
1
5
18,350
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.ResidualBlock
from torchvision.ops import Conv2dNormActivation import torch.nn as nn class ResidualBlock(nn.Module): """Slightly modified Residual block with extra relu and biases.""" def __init__(self, in_channels, out_channels, *, norm_layer, stride=1, always_project: bool=False): super().__init__() self....
class ResidualBlock(nn.Module): '''Slightly modified Residual block with extra relu and biases.''' def __init__(self, in_channels, out_channels, *, norm_layer, stride=1, always_project: bool=False): pass def forward(self, x): pass
3
1
21
3
14
4
2
0.28
1
3
1
0
2
4
2
12
45
8
29
8
26
8
16
8
13
2
1
1
3
18,351
pytorch/vision
pytorch_vision/torchvision/models/optical_flow/raft.py
torchvision.models.optical_flow.raft.UpdateBlock
import torch import torch.nn as nn import torch.nn.functional as F class UpdateBlock(nn.Module): """The update block which contains the motion encoder, the recurrent block, and the flow head. It must expose a ``hidden_state_size`` attribute which is the hidden state size of its recurrent block. """ d...
class UpdateBlock(nn.Module): '''The update block which contains the motion encoder, the recurrent block, and the flow head. It must expose a ``hidden_state_size`` attribute which is the hidden state size of its recurrent block. ''' def __init__(self, *, motion_encoder, recurrent_block, flow_head): ...
3
1
7
1
6
0
1
0.23
1
1
0
0
2
4
2
12
21
5
13
10
10
3
13
10
10
1
1
0
2
18,352
pytorch/vision
pytorch_vision/torchvision/models/quantization/googlenet.py
torchvision.models.quantization.googlenet.GoogLeNet_QuantizedWeights
from ...transforms._presets import ImageClassification from .._api import register_model, Weights, WeightsEnum from .._meta import _IMAGENET_CATEGORIES from functools import partial from ..googlenet import BasicConv2d, GoogLeNet, GoogLeNet_Weights, GoogLeNetOutputs, Inception, InceptionAux class GoogLeNet_QuantizedWei...
class GoogLeNet_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0.04
1
0
0
0
0
0
0
55
26
0
26
3
25
1
3
3
2
0
5
0
0
18,353
pytorch/vision
pytorch_vision/torchvision/models/quantization/googlenet.py
torchvision.models.quantization.googlenet.QuantizableBasicConv2d
from ..googlenet import BasicConv2d, GoogLeNet, GoogLeNet_Weights, GoogLeNetOutputs, Inception, InceptionAux from torch import Tensor from typing import Any, Optional, Union import torch.nn as nn from .utils import _fuse_modules, _replace_relu, quantize_model class QuantizableBasicConv2d(BasicConv2d): def __init_...
class QuantizableBasicConv2d(BasicConv2d): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: pass
4
0
3
0
3
0
1
0
1
4
0
0
3
1
3
15
13
2
11
5
7
0
11
5
7
1
2
0
3
18,354
pytorch/vision
pytorch_vision/torchvision/models/quantization/googlenet.py
torchvision.models.quantization.googlenet.QuantizableGoogLeNet
from ..googlenet import BasicConv2d, GoogLeNet, GoogLeNet_Weights, GoogLeNetOutputs, Inception, InceptionAux from torch import Tensor import warnings import torch.nn as nn from typing import Any, Optional, Union import torch class QuantizableGoogLeNet(GoogLeNet): def __init__(self, *args: Any, **kwargs: Any) -> N...
class QuantizableGoogLeNet(GoogLeNet): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> GoogLeNetOutputs: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: '''Fuse conv/bn/relu modules in googlenet model Fuse conv+b...
4
1
10
1
7
2
2
0.3
1
8
3
0
3
2
3
18
33
4
23
9
19
7
20
9
16
3
2
2
7
18,355
pytorch/vision
pytorch_vision/torchvision/models/quantization/googlenet.py
torchvision.models.quantization.googlenet.QuantizableInception
from ..googlenet import BasicConv2d, GoogLeNet, GoogLeNet_Weights, GoogLeNetOutputs, Inception, InceptionAux from torch import Tensor from typing import Any, Optional, Union import torch.nn as nn class QuantizableInception(Inception): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__...
class QuantizableInception(Inception): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
3
0
3
1
1
0.14
1
4
1
0
2
1
2
15
8
1
7
5
4
1
7
5
4
1
2
0
2
18,356
pytorch/vision
pytorch_vision/torchvision/models/quantization/googlenet.py
torchvision.models.quantization.googlenet.QuantizableInceptionAux
from torch.nn import functional as F from ..googlenet import BasicConv2d, GoogLeNet, GoogLeNet_Weights, GoogLeNetOutputs, Inception, InceptionAux from typing import Any, Optional, Union import torch from torch import Tensor import torch.nn as nn class QuantizableInceptionAux(InceptionAux): def __init__(self, *arg...
class QuantizableInceptionAux(InceptionAux): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
10
1
6
4
1
0.75
1
4
1
0
2
1
2
14
22
2
12
4
9
9
12
4
9
1
2
0
2
18,357
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.Inception_V3_QuantizedWeights
from .._meta import _IMAGENET_CATEGORIES from torchvision.models.inception import Inception_V3_Weights, InceptionOutputs from ...transforms._presets import ImageClassification from .._api import register_model, Weights, WeightsEnum from functools import partial class Inception_V3_QuantizedWeights(WeightsEnum): IMA...
class Inception_V3_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0.04
1
0
0
0
0
0
0
55
26
0
26
3
25
1
3
3
2
0
5
0
0
18,358
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableBasicConv2d
from .utils import _fuse_modules, _replace_relu, quantize_model from torch import Tensor from typing import Any, Optional, Union from torchvision.models import inception as inception_module import torch.nn as nn class QuantizableBasicConv2d(inception_module.BasicConv2d): def __init__(self, *args: Any, **kwargs: A...
class QuantizableBasicConv2d(inception_module.BasicConv2d): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: pass
4
0
3
0
3
0
1
0
1
4
0
0
3
1
3
15
13
2
11
5
7
0
11
5
7
1
2
0
3
18,359
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableInception3
from typing import Any, Optional, Union from torchvision.models.inception import Inception_V3_Weights, InceptionOutputs from torchvision.models import inception as inception_module from torch import Tensor import torch.nn as nn import torch import warnings import torch.nn.functional as F class QuantizableInception3(in...
class QuantizableInception3(inception_module.Inception3): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> InceptionOutputs: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: '''Fuse conv/bn/relu modules in inception model ...
4
1
13
1
11
2
2
0.18
1
12
7
0
3
2
3
18
42
4
33
9
29
6
20
9
16
3
2
2
7
18,360
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableInceptionA
from torchvision.models import inception as inception_module import torch.nn as nn from torch import Tensor from typing import Any, Optional, Union class QuantizableInceptionA(inception_module.InceptionA): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, conv_block=Quantizabl...
class QuantizableInceptionA(inception_module.InceptionA): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
3
0
3
1
1
0.29
1
4
1
0
2
1
2
15
9
1
7
5
4
2
7
5
4
1
2
0
2
18,361
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableInceptionAux
from typing import Any, Optional, Union from torchvision.models import inception as inception_module class QuantizableInceptionAux(inception_module.InceptionAux): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, conv_block=QuantizableBasicConv2d, **kwargs)
class QuantizableInceptionAux(inception_module.InceptionAux): def __init__(self, *args: Any, **kwargs: Any) -> None: pass
2
0
2
0
2
1
1
0.67
1
3
1
0
1
0
1
13
4
0
3
2
1
2
3
2
1
1
2
0
1
18,362
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableInceptionB
import torch.nn as nn from typing import Any, Optional, Union from torch import Tensor from torchvision.models import inception as inception_module class QuantizableInceptionB(inception_module.InceptionB): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, conv_block=Quantizabl...
class QuantizableInceptionB(inception_module.InceptionB): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
3
0
3
1
1
0.29
1
4
1
0
2
1
2
15
9
1
7
5
4
2
7
5
4
1
2
0
2
18,363
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableInceptionC
from torch import Tensor from typing import Any, Optional, Union import torch.nn as nn from torchvision.models import inception as inception_module class QuantizableInceptionC(inception_module.InceptionC): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, conv_block=Quantizabl...
class QuantizableInceptionC(inception_module.InceptionC): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
3
0
3
1
1
0.29
1
4
1
0
2
1
2
15
9
1
7
5
4
2
7
5
4
1
2
0
2
18,364
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableInceptionD
from torch import Tensor import torch.nn as nn from typing import Any, Optional, Union from torchvision.models import inception as inception_module class QuantizableInceptionD(inception_module.InceptionD): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, conv_block=Quantizabl...
class QuantizableInceptionD(inception_module.InceptionD): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
3
0
3
1
1
0.29
1
4
1
0
2
1
2
15
9
1
7
5
4
2
7
5
4
1
2
0
2
18,365
pytorch/vision
pytorch_vision/torchvision/models/quantization/inception.py
torchvision.models.quantization.inception.QuantizableInceptionE
from typing import Any, Optional, Union from torch import Tensor from torchvision.models import inception as inception_module import torch.nn.functional as F import torch.nn as nn class QuantizableInceptionE(inception_module.InceptionE): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__ini...
class QuantizableInceptionE(inception_module.InceptionE): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def _forward(self, x: Tensor) -> list[Tensor]: pass def forward(self, x: Tensor) -> Tensor: pass
4
0
9
1
8
0
1
0.08
1
4
1
0
3
3
3
16
32
6
25
13
21
2
22
13
18
1
2
0
3
18,366
pytorch/vision
pytorch_vision/torchvision/models/quantization/mobilenetv2.py
torchvision.models.quantization.mobilenetv2.MobileNet_V2_QuantizedWeights
from functools import partial from .._meta import _IMAGENET_CATEGORIES from ...transforms._presets import ImageClassification from .._api import register_model, Weights, WeightsEnum from torchvision.models.mobilenetv2 import InvertedResidual, MobileNet_V2_Weights, MobileNetV2 class MobileNet_V2_QuantizedWeights(Weight...
class MobileNet_V2_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0.04
1
0
0
0
0
0
0
55
26
0
26
3
25
1
3
3
2
0
5
0
0
18,367
pytorch/vision
pytorch_vision/torchvision/models/quantization/mobilenetv2.py
torchvision.models.quantization.mobilenetv2.QuantizableInvertedResidual
from typing import Any, Optional, Union from torch import nn, Tensor from .utils import _fuse_modules, _replace_relu, quantize_model from torchvision.models.mobilenetv2 import InvertedResidual, MobileNet_V2_Weights, MobileNetV2 class QuantizableInvertedResidual(InvertedResidual): def __init__(self, *args: Any, **...
class QuantizableInvertedResidual(InvertedResidual): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: pass
4
0
4
0
4
0
2
0
1
7
0
0
3
2
3
15
15
2
13
7
9
0
12
6
8
3
2
2
6
18,368
pytorch/vision
pytorch_vision/torchvision/models/quantization/mobilenetv2.py
torchvision.models.quantization.mobilenetv2.QuantizableMobileNetV2
from .utils import _fuse_modules, _replace_relu, quantize_model from torchvision.models.mobilenetv2 import InvertedResidual, MobileNet_V2_Weights, MobileNetV2 from typing import Any, Optional, Union from torch import nn, Tensor from ...ops.misc import Conv2dNormActivation from torch.ao.quantization import DeQuantStub, ...
class QuantizableMobileNetV2(MobileNetV2): def __init__(self, *args: Any, **kwargs: Any) -> None: ''' MobileNet V2 main class Args: Inherits args from floating point MobileNetV2 ''' pass def forward(self, x: Tensor) -> Tensor: pass def fuse_mode...
4
1
7
0
5
2
2
0.31
1
9
2
0
3
2
3
16
24
3
16
7
12
5
16
7
12
4
2
2
6
18,369
pytorch/vision
pytorch_vision/torchvision/models/quantization/mobilenetv3.py
torchvision.models.quantization.mobilenetv3.MobileNet_V3_Large_QuantizedWeights
from ..mobilenetv3 import _mobilenet_v3_conf, InvertedResidual, InvertedResidualConfig, MobileNet_V3_Large_Weights, MobileNetV3 from functools import partial from .._meta import _IMAGENET_CATEGORIES from ...transforms._presets import ImageClassification from .._api import register_model, Weights, WeightsEnum class Mob...
class MobileNet_V3_Large_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0.04
1
0
0
0
0
0
0
55
26
0
26
3
25
1
3
3
2
0
5
0
0
18,370
pytorch/vision
pytorch_vision/torchvision/models/quantization/mobilenetv3.py
torchvision.models.quantization.mobilenetv3.QuantizableInvertedResidual
from typing import Any, Optional, Union from torch import nn, Tensor from ..mobilenetv3 import _mobilenet_v3_conf, InvertedResidual, InvertedResidualConfig, MobileNet_V3_Large_Weights, MobileNetV3 class QuantizableInvertedResidual(InvertedResidual): def __init__(self, *args: Any, **kwargs: Any) -> None: s...
class QuantizableInvertedResidual(InvertedResidual): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
4
0
4
1
2
0.22
1
4
1
0
2
1
2
14
11
1
9
4
6
2
8
4
5
2
2
1
3
18,371
pytorch/vision
pytorch_vision/torchvision/models/quantization/mobilenetv3.py
torchvision.models.quantization.mobilenetv3.QuantizableMobileNetV3
from torch.ao.quantization import DeQuantStub, QuantStub from torch import nn, Tensor from ...ops.misc import Conv2dNormActivation, SqueezeExcitation from ..mobilenetv3 import _mobilenet_v3_conf, InvertedResidual, InvertedResidualConfig, MobileNet_V3_Large_Weights, MobileNetV3 from typing import Any, Optional, Union fr...
class QuantizableMobileNetV3(MobileNetV3): def __init__(self, *args: Any, **kwargs: Any) -> None: ''' MobileNet V3 main class Args: Inherits args from floating point MobileNetV3 ''' pass def forward(self, x: Tensor) -> Tensor: pass def fuse_mode...
4
1
8
0
6
2
2
0.26
1
9
2
0
3
2
3
16
27
3
19
8
15
5
18
8
14
5
2
3
7
18,372
pytorch/vision
pytorch_vision/torchvision/models/quantization/mobilenetv3.py
torchvision.models.quantization.mobilenetv3.QuantizableSqueezeExcitation
from typing import Any, Optional, Union from .utils import _fuse_modules, _replace_relu from ...ops.misc import Conv2dNormActivation, SqueezeExcitation import torch from torch import nn, Tensor class QuantizableSqueezeExcitation(SqueezeExcitation): _version = 2 def __init__(self, *args: Any, **kwargs: Any) ->...
class QuantizableSqueezeExcitation(SqueezeExcitation): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, input: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: pass def _load_from_state_dict(self, state_dict, pre...
5
0
11
1
11
0
2
0
1
4
0
0
4
1
4
17
51
6
45
20
31
0
19
11
14
4
2
3
7
18,373
pytorch/vision
pytorch_vision/torchvision/models/quantization/resnet.py
torchvision.models.quantization.resnet.QuantizableBasicBlock
from .utils import _fuse_modules, _replace_relu, quantize_model from torchvision.models.resnet import BasicBlock, Bottleneck, ResNet, ResNet18_Weights, ResNet50_Weights, ResNeXt101_32X8D_Weights, ResNeXt101_64X4D_Weights import torch.nn as nn from typing import Any, Optional, Union from torch import Tensor import torch...
class QuantizableBasicBlock(BasicBlock): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: pass
4
0
8
2
6
0
2
0
1
4
0
0
3
2
3
15
26
7
19
8
15
0
19
7
15
2
2
1
5
18,374
pytorch/vision
pytorch_vision/torchvision/models/quantization/resnet.py
torchvision.models.quantization.resnet.QuantizableBottleneck
from torch import Tensor from torchvision.models.resnet import BasicBlock, Bottleneck, ResNet, ResNet18_Weights, ResNet50_Weights, ResNeXt101_32X8D_Weights, ResNeXt101_64X4D_Weights import torch.nn as nn from .utils import _fuse_modules, _replace_relu, quantize_model from typing import Any, Optional, Union class Quant...
class QuantizableBottleneck(Bottleneck): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: pass
4
0
9
1
8
0
2
0
1
4
0
0
3
4
3
15
31
5
26
10
22
0
24
9
20
2
2
1
5
18,375
pytorch/vision
pytorch_vision/torchvision/models/quantization/resnet.py
torchvision.models.quantization.resnet.QuantizableResNet
from torchvision.models.resnet import BasicBlock, Bottleneck, ResNet, ResNet18_Weights, ResNet50_Weights, ResNeXt101_32X8D_Weights, ResNeXt101_64X4D_Weights from typing import Any, Optional, Union from .utils import _fuse_modules, _replace_relu, quantize_model from torch import Tensor import torch import torch.nn as nn...
class QuantizableResNet(ResNet): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: '''Fuse conv/bn/relu modules in resnet models Fuse conv+bn+relu/ Conv+relu/...
4
1
8
1
5
3
2
0.53
1
7
2
0
3
2
3
17
27
4
15
7
11
8
15
7
11
3
2
2
5
18,376
pytorch/vision
pytorch_vision/torchvision/models/quantization/resnet.py
torchvision.models.quantization.resnet.ResNeXt101_32X8D_QuantizedWeights
from torchvision.models.resnet import BasicBlock, Bottleneck, ResNet, ResNet18_Weights, ResNet50_Weights, ResNeXt101_32X8D_Weights, ResNeXt101_64X4D_Weights from functools import partial from ...transforms._presets import ImageClassification from .._api import register_model, Weights, WeightsEnum class ResNeXt101_32X8...
class ResNeXt101_32X8D_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
36
0
36
4
35
0
4
4
3
0
5
0
0
18,377
pytorch/vision
pytorch_vision/torchvision/models/quantization/resnet.py
torchvision.models.quantization.resnet.ResNeXt101_64X4D_QuantizedWeights
from functools import partial from ...transforms._presets import ImageClassification from torchvision.models.resnet import BasicBlock, Bottleneck, ResNet, ResNet18_Weights, ResNet50_Weights, ResNeXt101_32X8D_Weights, ResNeXt101_64X4D_Weights from .._api import register_model, Weights, WeightsEnum class ResNeXt101_64X4...
class ResNeXt101_64X4D_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
20
0
20
3
19
0
3
3
2
0
5
0
0
18,378
pytorch/vision
pytorch_vision/torchvision/models/quantization/resnet.py
torchvision.models.quantization.resnet.ResNet18_QuantizedWeights
from ...transforms._presets import ImageClassification from .._api import register_model, Weights, WeightsEnum from torchvision.models.resnet import BasicBlock, Bottleneck, ResNet, ResNet18_Weights, ResNet50_Weights, ResNeXt101_32X8D_Weights, ResNeXt101_64X4D_Weights from functools import partial class ResNet18_Quanti...
class ResNet18_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
19
0
19
3
18
0
3
3
2
0
5
0
0
18,379
pytorch/vision
pytorch_vision/torchvision/models/quantization/resnet.py
torchvision.models.quantization.resnet.ResNet50_QuantizedWeights
from ...transforms._presets import ImageClassification from torchvision.models.resnet import BasicBlock, Bottleneck, ResNet, ResNet18_Weights, ResNet50_Weights, ResNeXt101_32X8D_Weights, ResNeXt101_64X4D_Weights from .._api import register_model, Weights, WeightsEnum from functools import partial class ResNet50_Quanti...
class ResNet50_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
36
0
36
4
35
0
4
4
3
0
5
0
0
18,380
pytorch/vision
pytorch_vision/torchvision/models/quantization/shufflenetv2.py
torchvision.models.quantization.shufflenetv2.QuantizableInvertedResidual
from typing import Any, Optional, Union from torch import Tensor import torch.nn as nn from torchvision.models import shufflenetv2 class QuantizableInvertedResidual(shufflenetv2.InvertedResidual): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) self.cat = n...
class QuantizableInvertedResidual(shufflenetv2.InvertedResidual): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass
3
0
7
1
6
0
2
0
1
3
0
0
2
1
2
15
15
3
12
6
9
0
11
6
8
2
2
1
3
18,381
pytorch/vision
pytorch_vision/torchvision/models/quantization/shufflenetv2.py
torchvision.models.quantization.shufflenetv2.QuantizableShuffleNetV2
import torch.nn as nn from torch import Tensor from typing import Any, Optional, Union from torchvision.models import shufflenetv2 import torch from .utils import _fuse_modules, _replace_relu, quantize_model class QuantizableShuffleNetV2(shufflenetv2.ShuffleNetV2): def __init__(self, *args: Any, **kwargs: Any) ->...
class QuantizableShuffleNetV2(shufflenetv2.ShuffleNetV2): def __init__(self, *args: Any, **kwargs: Any) -> None: pass def forward(self, x: Tensor) -> Tensor: pass def fuse_model(self, is_qat: Optional[bool]=None) -> None: '''Fuse conv/bn/relu modules in shufflenetv2 model ...
4
1
11
1
8
3
3
0.38
1
6
1
0
3
2
3
16
36
4
24
7
20
9
19
7
15
6
2
3
8
18,382
pytorch/vision
pytorch_vision/torchvision/models/quantization/shufflenetv2.py
torchvision.models.quantization.shufflenetv2.ShuffleNet_V2_X0_5_QuantizedWeights
from .._api import register_model, Weights, WeightsEnum from functools import partial from ...transforms._presets import ImageClassification from ..shufflenetv2 import ShuffleNet_V2_X0_5_Weights, ShuffleNet_V2_X1_0_Weights, ShuffleNet_V2_X1_5_Weights, ShuffleNet_V2_X2_0_Weights class ShuffleNet_V2_X0_5_QuantizedWeight...
class ShuffleNet_V2_X0_5_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
19
0
19
3
18
0
3
3
2
0
5
0
0
18,383
pytorch/vision
pytorch_vision/torchvision/models/quantization/shufflenetv2.py
torchvision.models.quantization.shufflenetv2.ShuffleNet_V2_X1_0_QuantizedWeights
from ...transforms._presets import ImageClassification from functools import partial from ..shufflenetv2 import ShuffleNet_V2_X0_5_Weights, ShuffleNet_V2_X1_0_Weights, ShuffleNet_V2_X1_5_Weights, ShuffleNet_V2_X2_0_Weights from .._api import register_model, Weights, WeightsEnum class ShuffleNet_V2_X1_0_QuantizedWeight...
class ShuffleNet_V2_X1_0_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
19
0
19
3
18
0
3
3
2
0
5
0
0
18,384
pytorch/vision
pytorch_vision/torchvision/models/quantization/shufflenetv2.py
torchvision.models.quantization.shufflenetv2.ShuffleNet_V2_X1_5_QuantizedWeights
from ...transforms._presets import ImageClassification from .._api import register_model, Weights, WeightsEnum from functools import partial from ..shufflenetv2 import ShuffleNet_V2_X0_5_Weights, ShuffleNet_V2_X1_0_Weights, ShuffleNet_V2_X1_5_Weights, ShuffleNet_V2_X2_0_Weights class ShuffleNet_V2_X1_5_QuantizedWeight...
class ShuffleNet_V2_X1_5_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
20
0
20
3
19
0
3
3
2
0
5
0
0
18,385
pytorch/vision
pytorch_vision/torchvision/models/quantization/shufflenetv2.py
torchvision.models.quantization.shufflenetv2.ShuffleNet_V2_X2_0_QuantizedWeights
from .._api import register_model, Weights, WeightsEnum from ...transforms._presets import ImageClassification from ..shufflenetv2 import ShuffleNet_V2_X0_5_Weights, ShuffleNet_V2_X1_0_Weights, ShuffleNet_V2_X1_5_Weights, ShuffleNet_V2_X2_0_Weights from functools import partial class ShuffleNet_V2_X2_0_QuantizedWeight...
class ShuffleNet_V2_X2_0_QuantizedWeights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
20
0
20
3
19
0
3
3
2
0
5
0
0
18,386
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.AnyStage
from typing import Any, Callable, Optional from torch import nn, Tensor class AnyStage(nn.Sequential): """AnyNet stage (sequence of blocks w/ the same output shape).""" def __init__(self, width_in: int, width_out: int, stride: int, depth: int, block_constructor: Callable[..., nn.Module], norm_layer: Callable[...
class AnyStage(nn.Sequential): '''AnyNet stage (sequence of blocks w/ the same output shape).''' def __init__(self, width_in: int, width_out: int, stride: int, depth: int, block_constructor: Callable[..., nn.Module], norm_layer: Callable[..., nn.Module], activation_layer: Callable[..., nn.Module], group_width...
2
1
29
2
27
0
4
0.04
1
4
0
0
1
0
1
1
32
3
28
17
13
1
6
4
4
4
1
1
4
18,387
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.BlockParams
import torch from ._utils import _make_divisible, _ovewrite_named_param, handle_legacy_interface from typing import Any, Callable, Optional import math class BlockParams: def __init__(self, depths: list[int], widths: list[int], group_widths: list[int], bottleneck_multipliers: list[float], strides: list[int], se_r...
class BlockParams: def __init__(self, depths: list[int], widths: list[int], group_widths: list[int], bottleneck_multipliers: list[float], strides: list[int], se_ratio: Optional[float]=None) -> None: pass @classmethod def from_init_params(cls, depth: int, w_0: int, w_a: float, w_m: float, group_wid...
7
2
26
3
17
6
1
0.36
0
7
0
0
2
6
4
4
109
14
70
49
43
25
34
27
29
2
0
1
5
18,388
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.BottleneckTransform
from ..ops.misc import Conv2dNormActivation, SqueezeExcitation from collections import OrderedDict from typing import Any, Callable, Optional from torch import nn, Tensor class BottleneckTransform(nn.Sequential): """Bottleneck transformation: 1x1, 3x3 [+SE], 1x1.""" def __init__(self, width_in: int, width_out...
class BottleneckTransform(nn.Sequential): '''Bottleneck transformation: 1x1, 3x3 [+SE], 1x1.''' def __init__(self, width_in: int, width_out: int, stride: int, norm_layer: Callable[..., nn.Module], activation_layer: Callable[..., nn.Module], group_width: int, bottleneck_multiplier: float, se_ratio: Optional[fl...
2
1
36
3
31
2
2
0.09
1
7
2
0
1
0
1
1
39
4
32
16
20
3
12
6
10
2
1
1
2
18,389
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet
from ..utils import _log_api_usage_once from typing import Any, Callable, Optional from collections import OrderedDict from torch import nn, Tensor import math class RegNet(nn.Module): def __init__(self, block_params: BlockParams, num_classes: int=1000, stem_width: int=32, stem_type: Optional[Callable[..., nn.Mod...
class RegNet(nn.Module): def __init__(self, block_params: BlockParams, num_classes: int=1000, stem_width: int=32, stem_type: Optional[Callable[..., nn.Module]]=None, block_type: Optional[Callable[..., nn.Module]]=None, norm_layer: Optional[Callable[..., nn.Module]]=None, activation: Optional[Callable[..., nn.Modu...
3
0
44
5
37
2
6
0.05
1
9
4
0
2
4
2
12
89
11
75
26
63
4
36
12
33
10
1
2
11
18,390
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_X_16GF_Weights
from functools import partial from ..transforms._presets import ImageClassification, InterpolationMode from ._api import register_model, Weights, WeightsEnum class RegNet_X_16GF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_x_16gf-2007eb11.pth', transforms=partial(Im...
class RegNet_X_16GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,391
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_X_1_6GF_Weights
from functools import partial from ._api import register_model, Weights, WeightsEnum from ..transforms._presets import ImageClassification, InterpolationMode class RegNet_X_1_6GF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_x_1_6gf-e3633e7f.pth', transforms=partial(...
class RegNet_X_1_6GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,392
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_X_32GF_Weights
from ..transforms._presets import ImageClassification, InterpolationMode from ._api import register_model, Weights, WeightsEnum from functools import partial class RegNet_X_32GF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_x_32gf-9d47f8d0.pth', transforms=partial(Im...
class RegNet_X_32GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,393
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_X_3_2GF_Weights
from ..transforms._presets import ImageClassification, InterpolationMode from ._api import register_model, Weights, WeightsEnum from functools import partial class RegNet_X_3_2GF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_x_3_2gf-f342aeae.pth', transforms=partial(...
class RegNet_X_3_2GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,394
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_X_400MF_Weights
from ._api import register_model, Weights, WeightsEnum from ..transforms._presets import ImageClassification, InterpolationMode from functools import partial class RegNet_X_400MF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_x_400mf-adf1edd5.pth', transforms=partial(...
class RegNet_X_400MF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,395
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_X_800MF_Weights
from functools import partial from ._api import register_model, Weights, WeightsEnum from ..transforms._presets import ImageClassification, InterpolationMode class RegNet_X_800MF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_x_800mf-ad17e45c.pth', transforms=partial(...
class RegNet_X_800MF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,396
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_X_8GF_Weights
from ._api import register_model, Weights, WeightsEnum from functools import partial from ..transforms._presets import ImageClassification, InterpolationMode class RegNet_X_8GF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_x_8gf-03ceed89.pth', transforms=partial(Imag...
class RegNet_X_8GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0
18,397
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_Y_128GF_Weights
from ._api import register_model, Weights, WeightsEnum from functools import partial from ..transforms._presets import ImageClassification, InterpolationMode class RegNet_Y_128GF_Weights(WeightsEnum): IMAGENET1K_SWAG_E2E_V1 = Weights(url='https://download.pytorch.org/models/regnet_y_128gf_swag-c8ce3e52.pth', trans...
class RegNet_Y_128GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
55
47
0
47
4
46
0
4
4
3
0
5
0
0
18,398
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_Y_16GF_Weights
from functools import partial from ..transforms._presets import ImageClassification, InterpolationMode from ._api import register_model, Weights, WeightsEnum class RegNet_Y_16GF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_y_16gf-9e6ed7dd.pth', transforms=partial(Im...
class RegNet_Y_16GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.02
1
0
0
0
0
0
0
55
87
0
87
6
86
2
6
6
5
0
5
0
0
18,399
pytorch/vision
pytorch_vision/torchvision/models/regnet.py
torchvision.models.regnet.RegNet_Y_1_6GF_Weights
from ._api import register_model, Weights, WeightsEnum from ..transforms._presets import ImageClassification, InterpolationMode from functools import partial class RegNet_Y_1_6GF_Weights(WeightsEnum): IMAGENET1K_V1 = Weights(url='https://download.pytorch.org/models/regnet_y_1_6gf-b11a554e.pth', transforms=partial(...
class RegNet_Y_1_6GF_Weights(WeightsEnum): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
55
42
0
42
4
41
2
4
4
3
0
5
0
0