(self, rounding=torch.round)
| 213 | """ |
| 214 | |
| 215 | def __init__(self, rounding=torch.round): |
| 216 | super(CompressJpeg, self).__init__() |
| 217 | self.l1 = nn.Sequential(RGB2YCbCrJpeg(), ChromaSubsampling()) |
| 218 | self.l2 = nn.Sequential(BlockSplitting(), DCT8x8()) |
| 219 | self.c_quantize = CQuantize(rounding=rounding) |
| 220 | self.y_quantize = YQuantize(rounding=rounding) |
| 221 | |
| 222 | def forward(self, image, factor=1): |
| 223 | """ |
nothing calls this directly
no test coverage detected