MCPcopy 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_generatorFunction · 0.80
filter2DFunction · 0.80
forwardMethod · 0.80
__call__Method · 0.80
__call__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected