(self, agent)
| 13 | |
| 14 | class Policy(nn.Module): |
| 15 | def __init__(self, agent): |
| 16 | super(Policy, self).__init__() |
| 17 | self.agent = agent |
| 18 | |
| 19 | self.saved_log_probs = [] |
| 20 | self.rewards = [] |
| 21 | |
| 22 | def forward(self, observation): |
| 23 | """Sample action from agents output distribution over actions. |
nothing calls this directly
no outgoing calls
no test coverage detected