Avoid exceptions to be silenced
This commit is contained in:
+1
-2
@@ -178,8 +178,7 @@ def manual_cast(target_dtype):
|
|||||||
try:
|
try:
|
||||||
yield None
|
yield None
|
||||||
finally:
|
finally:
|
||||||
if not applied:
|
if applied:
|
||||||
return
|
|
||||||
for module_type in patch_module_list:
|
for module_type in patch_module_list:
|
||||||
if hasattr(module_type, "org_forward"):
|
if hasattr(module_type, "org_forward"):
|
||||||
module_type.forward = module_type.org_forward
|
module_type.forward = module_type.org_forward
|
||||||
|
|||||||
Reference in New Issue
Block a user