Requiring sampler to be a dimod.Sampler makes repeated sampling over changing parameters very inefficient because you have to recreate a linear and quadratic bias dictionaries or BQMs when the GRBM's parameters have been updated.
Candidate solution: wrap dimod.Samplers so it plays well with natively-pytorch samplers
Requiring
samplerto be adimod.Samplermakes repeated sampling over changing parameters very inefficient because you have to recreate a linear and quadratic bias dictionaries or BQMs when the GRBM's parameters have been updated.Candidate solution: wrap
dimod.Samplers so it plays well with natively-pytorch samplers