Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SLDGroup/MERIT
/ _kernel_valid
Function
_kernel_valid
lib/models_timm/layers/selective_kernel.py:15–19 ·
view source on GitHub ↗
(k)
Source
from the content-addressed store, hash-verified
13
14
15
def
_kernel_valid(k):
16
if
isinstance(k, (list, tuple)):
17
for
ki in k:
18
return
_kernel_valid(ki)
19
assert k >= 3 and k % 2
20
21
22
class
SelectiveKernelAttn(nn.Module):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected