fix #85
This commit is contained in:
parent
a655334d00
commit
6a2963bd64
@ -125,7 +125,7 @@ class BasePolicy(ABC, nn.Module):
|
|||||||
:return: a Batch. The result will be stored in batch.returns.
|
:return: a Batch. The result will be stored in batch.returns.
|
||||||
"""
|
"""
|
||||||
if v_s_ is None:
|
if v_s_ is None:
|
||||||
v_s_ = np.zeros_like(batch.rew)
|
v_s_ = batch.rew * 0.
|
||||||
else:
|
else:
|
||||||
if not isinstance(v_s_, np.ndarray):
|
if not isinstance(v_s_, np.ndarray):
|
||||||
v_s_ = np.array(v_s_, np.float)
|
v_s_ = np.array(v_s_, np.float)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user