MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / CLIPMLP

Class CLIPMLP

python/dump.py:352–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350 return x.sequential(self.out)
351
352class CLIPMLP:
353 def __init__(self):
354 self.fc1 = Linear(768, 3072)
355 self.fc2 = Linear(3072, 768)
356
357 def __call__(self, hidden_states):
358 hidden_states = self.fc1(hidden_states)
359 hidden_states = hidden_states.quick_gelu()
360 hidden_states = self.fc2(hidden_states)
361 return hidden_states
362
363class CLIPAttention:
364 def __init__(self):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected