MCPcopy Create free account
hub / github.com/BIT-MCS/DRL-eFresh / print_grad

Method print_grad

methods/model.py:111–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 return value, action_log_probs_dia, dist_entropy_dia
110
111 def print_grad(self):
112 for name, p in self.base.named_parameters():
113 print('name: ', name, ' value: ', p.grad.mean(), 'p.requires_grad', p.requires_grad)
114
115
116class NNBase(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected