mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Beginning
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
def get_param_size(model):
|
||||
params = 0
|
||||
for p in model.parameters():
|
||||
tmp = 1
|
||||
for x in p.size():
|
||||
tmp *= x
|
||||
params += tmp
|
||||
return params
|
||||
Reference in New Issue
Block a user