Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/HumanBench
/ _calc_same_pad
Function
_calc_same_pad
PATH/core/models/ops/conv2d_helpers.py:16–17 ·
view source on GitHub ↗
(i, k, s, d)
Source
from the content-addressed store, hash-verified
14
15
16
def
_calc_same_pad(i, k, s, d):
17
return
max((math.ceil(i / s) - 1) * s + (k - 1) * d + 1 - i, 0)
18
19
20
def
_split_channels(num_chan, num_groups, split_op=
'equal'
):
Callers
1
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected