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

Function save_geglu

python/unet.py:44–48  ·  view source on GitHub ↗
(geglu, path)

Source from the content-addressed store, hash-verified

42 save_scalar(cross_attention.num_heads, 'n_head', path)
43
44def save_geglu(geglu, path):
45 pathlib.Path(path).mkdir(parents=True, exist_ok=True)
46
47 # Save Linear layers
48 save_linear(geglu.proj, os.path.join(path, 'proj'))
49
50def save_feed_forward(feed_forward, path):
51 pathlib.Path(path).mkdir(parents=True, exist_ok=True)

Callers 1

save_feed_forwardFunction · 0.85

Calls 1

save_linearFunction · 0.85

Tested by

no test coverage detected