Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DragonisCV/RAM
/ repeat
Method
repeat
ram/utils/diffjpeg.py:366–371 ·
view source on GitHub ↗
(x, k=2)
Source
from the content-addressed store, hash-verified
364
""
"
365
366
def
repeat(x, k=2):
367
height, width = x.shape[1:3]
368
x = x.unsqueeze(-1)
369
x = x.repeat(1, 1, k, k)
370
x = x.view(-1, height * k, width * k)
371
return
x
372
373
cb = repeat(cb)
374
cr = repeat(cr)
Callers
6
attr_gabor_generator
Function · 0.80
filter2D
Function · 0.80
forward
Method · 0.80
__call__
Method · 0.80
__call__
Method · 0.80
__init__
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected