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

Function init

utils/base_utils.py:235–238  ·  view source on GitHub ↗
(module, weight_init, bias_init, gain=1)

Source from the content-addressed store, hash-verified

233
234
235def init(module, weight_init, bias_init, gain=1):
236 weight_init(module.weight.data, gain=gain)
237 bias_init(module.bias.data)
238 return module
239
240
241# https://github.com/openai/baselines/blob/master/baselines/common/tf_util.py #L87

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected