LOG: warning to error

This commit is contained in:
lzhengning 2021-02-05 14:24:37 +08:00
parent 095acdb575
commit 32549e4be8
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ class Module:
v.update(param) v.update(param)
else: else:
n_failed += 1 n_failed += 1
LOG.w(f'load parameter {key} failed: expect the shape of {key} to be {v.shape}, but got {param.shape}') LOG.e(f'load parameter {key} failed: expect the shape of {key} to be {v.shape}, but got {param.shape}')
if n_failed: if n_failed:
LOG.w(f"load total {len(params)} params, {n_failed} failed") LOG.w(f"load total {len(params)} params, {n_failed} failed")