Closed zaqqwerty closed 2 years ago
While working on #173, there were a lot of changes that are tangential to #115 but do simplify the code. I forked these changes off into this PR.
EnergyInference
infer
persistent
GradientTape
expectation
tf.function
setUp
While working on #173, there were a lot of changes that are tangential to #115 but do simplify the code. I forked these changes off into this PR.
EnergyInference
into an interface class and a default methods classinfer
calls)persistent
keyword inGradientTape
ofexpectation
call for now. Did this since persistence seems to cause issues with TFQ, see https://github.com/google/qhbm-library/pull/163#issuecomment-1034053388 ; can revisit in #157tf.function
wrappingsetUp
method