MCPcopy Create free account
hub / github.com/espnet/espnet / test_initialize

Function test_initialize

test/espnet2/torch_utils/test_initialize.py:36–42  ·  view source on GitHub ↗
(init)

Source from the content-addressed store, hash-verified

34 ],
35)
36def test_initialize(init):
37 model = Model()
38 if init == "dummy":
39 with pytest.raises(ValueError):
40 initialize(model, init)
41 else:
42 initialize(model, init)

Callers

nothing calls this directly

Calls 2

initializeFunction · 0.90
ModelClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…