mirror of https://github.com/Jittor/Jittor
LOG: warning to error
This commit is contained in:
parent
095acdb575
commit
32549e4be8
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue