dimod.ConstrainedQuadraticModel.from_file

classmethod ConstrainedQuadraticModel.from_file(fp: Union[BinaryIO, ByteString]) dimod.constrained.ConstrainedQuadraticModel[source]

Construct from a file-like object.

The inverse of to_file().