(self, pool_size)
| 3 | from torch.autograd import Variable |
| 4 | class ImagePool(): |
| 5 | def __init__(self, pool_size): |
| 6 | self.pool_size = pool_size |
| 7 | if self.pool_size > 0: |
| 8 | self.num_imgs = 0 |
| 9 | self.images = [] |
| 10 | |
| 11 | def query(self, images): |
| 12 | if self.pool_size == 0: |
nothing calls this directly
no outgoing calls
no test coverage detected