(x: Tensor, height: int, width: int)
| 354 | |
| 355 | |
| 356 | def unpack(x: Tensor, height: int, width: int) -> Tensor: |
| 357 | return rearrange( |
| 358 | x, |
| 359 | "b (h w) (c ph pw) -> b c (h ph) (w pw)", |
| 360 | h=math.ceil(height / 16), |
| 361 | w=math.ceil(width / 16), |
| 362 | ph=2, |
| 363 | pw=2, |
| 364 | ) |
no outgoing calls
no test coverage detected
searching dependent graphs…