dwave.optimization.model.Model.from_file#

classmethod Model.from_file(file, *, check_header=True)#

Construct a model from the given file.

Parameters:

file – File pointer to a readable, seekable file-like object encoding a model. Strings are interpreted as a file name.

Returns:

A model.