MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / save_function

Method save_function

src/diffusers/loaders/lora.py:788–789  ·  view source on GitHub ↗
(weights, filename)

Source from the content-addressed store, hash-verified

786 if safe_serialization:
787
788 def save_function(weights, filename):
789 return safetensors.torch.save_file(weights, filename, metadata={"format": "pt"})
790
791 else:
792 save_function = torch.save

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected