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

Class CLIPOutput

stable_diffusion/stable_diffusion/clip.py:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14@dataclass
15class CLIPOutput:
16 # The last_hidden_state indexed at the EOS token and possibly projected if
17 # the model has a projection layer
18 pooled_output: Optional[mx.array] = None
19
20 # The full sequence output of the transformer after the final layernorm
21 last_hidden_state: Optional[mx.array] = None
22
23 # A list of hidden states corresponding to the outputs of the transformer layers
24 hidden_states: Optional[List[mx.array]] = None
25
26
27class CLIPEncoderLayer(nn.Module):

Callers 1

__call__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected