[BugFix][Optimization] Replace silent failures with catchable exceptions and informative error messages (#6533)

* init

* init

* fix format

* add

* add files

* add ut

* fix some

* add ut

* add more

* add

* fix pre-commit

* fix pre-commit

* fix cover

* skip long seq

* add

* add

* fix

* remove not need

* fix set attr

* fix comments

* fix comments

* fix failed tests

---------

Co-authored-by: gongweibao <gognweibao@baidu.com>
This commit is contained in:
gongweibao
2026-03-16 21:32:43 +08:00
committed by GitHub
parent d113397b09
commit a6351dea0b
61 changed files with 1595 additions and 171 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ class ResourceManager:
elif required_type == "decoder":
block_num = self.get_decoder_block_number()
else:
raise ValueError("unknown required type")
raise ValueError(f"unknown required type: '{required_type}', expected 'all', 'encoder', or 'decoder'")
block_list = list()
current_block_num = self.available_block_num()