MCPcopy 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
7def _is_static_pad(kernel_size, stride=1, dilation=1, **_):
8 return stride == 1 and (dilation * (kernel_size - 1)) % 2 == 0
9
10
11def _get_padding(kernel_size, stride=1, dilation=1, **_):

Callers 1

conv2d_padFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected