MCPcopy Create free account
hub / github.com/rlcode/reinforcement-learning / _ortho

Function _ortho

4-atari-hard/3-robustify.py:67–70  ·  view source on GitHub ↗
(layer, gain)

Source from the content-addressed store, hash-verified

65
66
67def _ortho(layer, gain):
68 nn.init.orthogonal_(layer.weight, gain)
69 nn.init.zeros_(layer.bias)
70 return layer
71
72
73class GRUActorCritic(nn.Module):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected