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

Method __init__

utils/base_utils.py:222–224  ·  view source on GitHub ↗
(self, bias)

Source from the content-addressed store, hash-verified

220# Necessary for my KFAC implementation.
221class AddBias(nn.Module):
222 def __init__(self, bias):
223 super(AddBias, self).__init__()
224 self._bias = nn.Parameter(bias.unsqueeze(1))
225
226 def forward(self, x):
227 if x.dim() == 2:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected