Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/HumanBench
/ _is_static_pad
Function
_is_static_pad
PATH/core/models/ops/conv2d_helpers.py:7–8 ·
view source on GitHub ↗
(kernel_size, stride=1, dilation=1, **_)
Source
from the content-addressed store, hash-verified
5
6
7
def
_is_static_pad(kernel_size, stride=1, dilation=1, **_):
8
return
stride == 1 and (dilation * (kernel_size - 1)) % 2 == 0
9
10
11
def
_get_padding(kernel_size, stride=1, dilation=1, **_):
Callers
1
conv2d_pad
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected