mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-25 09:57:51 +08:00
[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:
@@ -189,7 +189,7 @@ class KernelInterface:
|
||||
else:
|
||||
const_hint_dict[self.arg_names[i]] = ele
|
||||
else:
|
||||
assert False
|
||||
assert False, f"Unsupported constexpr type: {type(ele)} for arg '{self.arg_names[i]}'"
|
||||
else:
|
||||
x_list.append(ele)
|
||||
if isinstance(ele, int):
|
||||
@@ -197,7 +197,7 @@ class KernelInterface:
|
||||
elif isinstance(ele, float):
|
||||
decalare_arg_exclude_constexpr[i] = "const float " + decalare_arg_exclude_constexpr[i]
|
||||
else:
|
||||
assert False
|
||||
assert False, f"Unsupported arg type: {type(ele)} for arg '{self.arg_names[i]}'"
|
||||
|
||||
python_package_name = f"{op_name}_package"
|
||||
tp_rank = paddle.distributed.get_rank()
|
||||
|
||||
Reference in New Issue
Block a user