dimod.Composite.close#
- Composite.close()[source]#
Release any scope-bound resources of child samplers or composites.
Note
If a
Composite
subclass doesn’t allocate resources that have to be explicitly released, there’s no need to override the defaultclose()
implementation.However, if you do implement
close()
on a subclass, make sure to either callsuper().close()
, or to explicitly close all child samplers/composites.