mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[XPU] Fix wrapper files (#6830)
- Add WRAPPER_CHECK_PTR for pointer validity checks - Add WRAPPER_ASSERT_GT/GE/LE for parameter range validation - Simplify wrapper function calls to direct return pattern
This commit is contained in:
@@ -77,7 +77,8 @@ DLL_EXPORT int get_padding_offset(api::Context* ctx,
|
||||
const int* cum_offsets,
|
||||
const int* seq_lens,
|
||||
const int max_seq_len,
|
||||
const int bs);
|
||||
const int bs,
|
||||
const int64_t token_num);
|
||||
|
||||
DLL_EXPORT int speculate_get_padding_offset(api::Context* ctx,
|
||||
int* batch_id_per_token,
|
||||
|
||||
Reference in New Issue
Block a user