mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[BugFix] fix eb5 mm prefix cache bug (#5638)
* fix eb5 mm prefix cache bug * update code --------- Co-authored-by: Jiaxin Sui <95567040+plusNew001@users.noreply.github.com>
This commit is contained in:
@@ -329,7 +329,7 @@ class ResourceManagerV1(ResourceManager):
|
||||
token_st += h * w // 4
|
||||
inputs["mm_positions"] = new_mm_positions
|
||||
inputs["mm_hashes"] = new_mm_hashes
|
||||
else:
|
||||
elif inputs.get("mm_positions", None) is None or inputs.get("mm_hashes", None) is None:
|
||||
inputs["mm_positions"] = []
|
||||
inputs["mm_hashes"] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user