MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / _cct

Function _cct

Image_Classification/src/models/cct.py:62–75  ·  view source on GitHub ↗
(num_layers, num_heads, mlp_ratio, embedding_dim,
         kernel_size=3, stride=None, padding=None,
         *args, **kwargs)

Source from the content-addressed store, hash-verified

60
61
62def _cct(num_layers, num_heads, mlp_ratio, embedding_dim,
63 kernel_size=3, stride=None, padding=None,
64 *args, **kwargs):
65 stride = default(stride, max(1, (kernel_size // 2) - 1))
66 padding = default(padding, max(1, (kernel_size // 2)))
67
68 return CCT(num_layers=num_layers,
69 num_heads=num_heads,
70 mlp_ratio=mlp_ratio,
71 embedding_dim=embedding_dim,
72 kernel_size=kernel_size,
73 stride=stride,
74 padding=padding,
75 *args, **kwargs)
76
77
78# positional

Callers 7

cct_2Function · 0.85
cct_4Function · 0.85
cct_6Function · 0.85
cct_7Function · 0.85
cct_8Function · 0.85
cct_14Function · 0.85
cct_16Function · 0.85

Calls 2

defaultFunction · 0.85
CCTClass · 0.85

Tested by

no test coverage detected