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

Function _flatten

stable_diffusion/stable_diffusion/model_io.py:167–168  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

165
166
167def _flatten(params):
168 return [(k, v) for p in params for (k, v) in p]
169
170
171def _load_safetensor_weights(mapper, model, weight_file, float16: bool = False):

Callers 1

_load_safetensor_weightsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected