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

Method __call__

python/dump.py:440–441  ·  view source on GitHub ↗
(self, input_ids, position_ids)

Source from the content-addressed store, hash-verified

438 self.position_embedding = Embedding(77, 768)
439
440 def __call__(self, input_ids, position_ids):
441 return self.token_embedding(input_ids) + self.position_embedding(position_ids)
442
443class CLIPTextTransformer:
444 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected