MCPcopy Create free account
hub / github.com/ASLP-lab/OSUM / init_model

Function init_model

OSUM/wenet/ssl/init_model.py:12–19  ·  view source on GitHub ↗
(configs, encoder)

Source from the content-addressed store, hash-verified

10
11
12def init_model(configs, encoder):
13
14 assert 'model' in configs
15 model_type = configs['model']
16 assert model_type in WENET_SSL_MODEL_CLASS.keys()
17 model = WENET_SSL_MODEL_CLASS[model_type](encoder=encoder,
18 **configs['model_conf'])
19 return model

Callers 13

infer_runtime.pyFile · 0.90
init_model_myFunction · 0.90
mainFunction · 0.90
onnx2horizonbin.pyFile · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
export_onnx_bpu.pyFile · 0.90
mainFunction · 0.90
mainFunction · 0.90
export_onnx_gpu.pyFile · 0.90

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected