Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/drinkingcoder/NeuralMarker
/ pad
Method
pad
core/utils/utils.py:18–19 ·
view source on GitHub ↗
(self, *inputs)
Source
from the content-addressed store, hash-verified
16
self._pad = [pad_wd//2, pad_wd - pad_wd//2, 0, pad_ht]
17
18
def
pad(self, *inputs):
19
return
[F.pad(x, self._pad, mode=
'replicate'
)
for
x in inputs]
20
21
def
unpad(self,x):
22
ht, wd = x.shape[-2:]
Callers
1
estimate
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected