public void Dispose() { _optimizer.Dispose(); _QTnetwork.Dispose(); foreach (ReplayBufferElem e in _replayBuffer) { Vector.Release(e.S0); Vector.Release(e.S1); } }
public virtual void Dispose() { foreach (Vector db in _db.Values) { Vector.Release(db); } foreach (Matrix dW in _dW.Values) { Matrix.Release(dW); } _network.Dispose(); }