(self, model)
| 65 | class TextFeatureExtractor(torch.nn.Module): |
| 66 | """ Text feature wrapper """ |
| 67 | def __init__(self, model): |
| 68 | super(TextFeatureExtractor, self).__init__() |
| 69 | self.model = model |
| 70 | |
| 71 | def __call__(self, x): |
| 72 | return self.model.get_text_features(x) |