Skip to content

Commit

Permalink
remove ._static_mode for static model (PaddlePaddle#8214)
Browse files Browse the repository at this point in the history
  • Loading branch information
w5688414 authored Mar 29, 2024
1 parent 50b4491 commit 4d661bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pipelines/pipelines/nodes/retriever/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ def __init__(
"feature_extraction",
model=query_embedding_model,
batch_size=self.batch_size,
_static_mode=True,
return_tensors="np",
max_len=max_seq_len_query,
output_emb_size=output_emb_size,
Expand All @@ -176,7 +175,6 @@ def __init__(
"feature_extraction",
model=passage_embedding_model,
batch_size=self.batch_size,
_static_mode=True,
return_tensors="np",
max_len=max_seq_len_passage,
output_emb_size=output_emb_size,
Expand Down

0 comments on commit 4d661bc

Please sign in to comment.