MCPcopy Create free account
hub / github.com/ml-explore/mlx-examples / __init__

Method __init__

clip/model.py:191–192  ·  view source on GitHub ↗
(self, config: CLIPTextConfig)

Source from the content-addressed store, hash-verified

189
190class Encoder(nn.Module):
191 def __init__(self, config: CLIPTextConfig):
192 self.layers = [EncoderLayer(config) for _ in range(config.num_hidden_layers)]
193
194
195class ClipTextModel(nn.Module):

Callers

nothing calls this directly

Calls 1

EncoderLayerClass · 0.70

Tested by

no test coverage detected