Closed loofahcus closed 8 years ago
deepqnetwork.py#L133 should be: targets = preq.asnumpyarray().copy()
targets = preq.asnumpyarray().copy()
Since for cpu backend, asnumpyarray() seems just get the reference of numpy array, which causes the modifications of targets impacting preq.
asnumpyarray()
targets
preq
Thanks @loofahcus! I was aware of this, but forgot to include the fix in this repo.
deepqnetwork.py#L133 should be:
targets = preq.asnumpyarray().copy()
Since for cpu backend,
asnumpyarray()
seems just get the reference of numpy array, which causes the modifications oftargets
impactingpreq
.