mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-09 10:30:37 +08:00
[XPU] support XPU VL model inference (#4030)
* [XPU] support XPU VL model inference * fix image op import and device check * rebase develop * fix perf
This commit is contained in:
@@ -232,6 +232,8 @@ class XPUForwardMeta(ForwardMeta):
|
||||
dec_batch: Optional[paddle.Tensor] = None
|
||||
#
|
||||
total_enc_len: Optional[paddle.Tensor] = None
|
||||
# position embedding type in rope, supports 'NORMAL' or 'HALF_HEAD_DIM'
|
||||
pos_emb_type: Optional[str] = "NORMAL"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
Reference in New Issue
Block a user