(self, config: VisionConfig)
| 191 | |
| 192 | class VisionModel(nn.Module): |
| 193 | def __init__(self, config: VisionConfig): |
| 194 | super().__init__() |
| 195 | |
| 196 | self.model_type = config.model_type |
| 197 | if self.model_type != "clip_vision_model": |
| 198 | raise ValueError(f"Unsupported model type: {self.model_type}") |
| 199 | |
| 200 | self.vision_model = ClipVisionModel(config) |
| 201 | |
| 202 | def __call__( |
| 203 | self, x: mx.array, output_hidden_states: Optional[bool] = None |
nothing calls this directly
no test coverage detected