MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / split

Function split

cldm/hack.py:47–48  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

45 return self.transformer(input_ids=t, output_hidden_states=False).last_hidden_state
46
47 def split(x):
48 return x[75 * 0: 75 * 1], x[75 * 1: 75 * 2], x[75 * 2: 75 * 3]
49
50 def pad(x, p, i):
51 return x[:i] if len(x) >= i else x + [p] * (i - len(x))

Callers 1

_hacked_clip_forwardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected