MCPcopy Create free account
hub / github.com/Yonv1943/Python / sample_all

Method sample_all

ElegantRL/replay.py:117–132  ·  view source on GitHub ↗

sample all the data in ReplayBuffer (for on-policy) :return torch.Tensor reward: reward.shape==(now_len, 1) :return torch.Tensor mask: mask.shape ==(now_len, 1), mask = 0.0 if done else gamma :return torch.Tensor action: action.shape==(now_len, action_dim) :r

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

prepare_bufferMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected