Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Royalvice/DocDiff
/ get_pad
Function
get_pad
model/DocDiff.py:356–358 ·
view source on GitHub ↗
(in_, ksize, stride, atrous=1)
Source
from the content-addressed store, hash-verified
354
355
356
def
get_pad(in_, ksize, stride, atrous=1):
357
out_ = np.ceil(float(in_)/stride)
358
return
int(((out_ - 1) * stride + atrous*(ksize-1) + 1 - in_)/2)
359
360
361
if
__name__ ==
'__main__'
:
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected