(self, model)
| 56 | class ImageFeatureExtractor(torch.nn.Module): |
| 57 | """ Image feature wrapper """ |
| 58 | def __init__(self, model): |
| 59 | super(ImageFeatureExtractor, self).__init__() |
| 60 | self.model = model |
| 61 | |
| 62 | def __call__(self, x): |
| 63 | return self.model.get_image_features(x) |