dimod.serialization.fileview.load

load(fp, cls=None)[source]

Load a model from a file.

Parameters
  • fp (bytes-like/file-like) – If file-like, should be readable, seekable file-like object. If bytes-like it will be wrapped with io.BytesIO.

  • cls (class, optional) – Deprecated keyword argument. Is ignored.

Returns

The loaded model.