mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
remove cum_offsets from ForwardMeta (#2925)
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled
This commit is contained in:
@@ -85,8 +85,6 @@ class ForwardMeta:
|
||||
# The sequence length processed in the current step
|
||||
seq_lens_this_time: Optional[paddle.Tensor] = None
|
||||
|
||||
# Accumulated offset
|
||||
cum_offsets: Optional[paddle.Tensor] = None
|
||||
# batch_id_per_token tensor, used to indicate which token belongs which batch after padding removal to the original input_ids
|
||||
batch_id_per_token: Optional[paddle.Tensor] = None
|
||||
# Accumulated sequence length of query
|
||||
@@ -112,7 +110,8 @@ class XPUForwardMeta(ForwardMeta):
|
||||
"""
|
||||
XPUForwardMeta is used to store the global meta information of the forward, and some XPU specific meta info.
|
||||
"""
|
||||
|
||||
# Accumulated offset
|
||||
cum_offsets: Optional[paddle.Tensor] = None
|
||||
# TODO(wanghaitao): Supplementary notes
|
||||
#
|
||||
encoder_batch_map: Optional[paddle.Tensor] = None
|
||||
|
Reference in New Issue
Block a user