Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
xufang-lisa committed Jan 3, 2025
1 parent ac55e25 commit 2b360aa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/python/openvino_genai/py_openvino_genai.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class AutoencoderKL:
device (str): Device to run the model on (e.g., CPU, GPU).
kwargs: Device properties.
"""
def decode(self, latent: openvino._pyopenvino.Tensor) -> openvino._pyopenvino.Tensor:
def decode(self, latent: openvino._pyopenvino.Tensor, infer_duration: float) -> openvino._pyopenvino.Tensor:
...
def encode(self, image: openvino._pyopenvino.Tensor, generator: Generator) -> openvino._pyopenvino.Tensor:
...
Expand Down Expand Up @@ -255,7 +255,7 @@ class CLIPTextModel:
...
def get_output_tensor(self, idx: int) -> openvino._pyopenvino.Tensor:
...
def infer(self, pos_prompt: str, neg_prompt: str, do_classifier_free_guidance: bool) -> openvino._pyopenvino.Tensor:
def infer(self, pos_prompt: str, neg_prompt: str, do_classifier_free_guidance: bool, infer_duration: float) -> openvino._pyopenvino.Tensor:
...
def reshape(self, batch_size: int) -> CLIPTextModel:
...
Expand Down Expand Up @@ -304,7 +304,7 @@ class CLIPTextModelWithProjection:
...
def get_output_tensor(self, idx: int) -> openvino._pyopenvino.Tensor:
...
def infer(self, pos_prompt: str, neg_prompt: str, do_classifier_free_guidance: bool) -> openvino._pyopenvino.Tensor:
def infer(self, pos_prompt: str, neg_prompt: str, do_classifier_free_guidance: bool, infer_duration: float) -> openvino._pyopenvino.Tensor:
...
def reshape(self, batch_size: int) -> CLIPTextModelWithProjection:
...
Expand Down Expand Up @@ -513,7 +513,7 @@ class FluxTransformer2DModel:
"""
def get_config(self) -> FluxTransformer2DModel.Config:
...
def infer(self, sample: openvino._pyopenvino.Tensor, timestep: openvino._pyopenvino.Tensor) -> openvino._pyopenvino.Tensor:
def infer(self, sample: openvino._pyopenvino.Tensor, timestep: openvino._pyopenvino.Tensor, infer_duration: float) -> openvino._pyopenvino.Tensor:
...
def reshape(self, batch_size: int, height: int, width: int, tokenizer_model_max_length: int) -> FluxTransformer2DModel:
...
Expand Down Expand Up @@ -1332,7 +1332,7 @@ class SD3Transformer2DModel:
"""
def get_config(self) -> SD3Transformer2DModel.Config:
...
def infer(self, sample: openvino._pyopenvino.Tensor, timestep: openvino._pyopenvino.Tensor) -> openvino._pyopenvino.Tensor:
def infer(self, sample: openvino._pyopenvino.Tensor, timestep: openvino._pyopenvino.Tensor, infer_duration: float) -> openvino._pyopenvino.Tensor:
...
def reshape(self, batch_size: int, height: int, width: int, tokenizer_model_max_length: int) -> SD3Transformer2DModel:
...
Expand Down Expand Up @@ -1529,7 +1529,7 @@ class T5EncoderModel:
"""
def get_output_tensor(self, idx: int) -> openvino._pyopenvino.Tensor:
...
def infer(self, pos_prompt: str, neg_prompt: str, do_classifier_free_guidance: bool, max_sequence_length: int) -> openvino._pyopenvino.Tensor:
def infer(self, pos_prompt: str, neg_prompt: str, do_classifier_free_guidance: bool, max_sequence_length: int, infer_duration: float) -> openvino._pyopenvino.Tensor:
...
def reshape(self, batch_size: int, max_sequence_length: int) -> T5EncoderModel:
...
Expand Down Expand Up @@ -1736,7 +1736,7 @@ class UNet2DConditionModel:
...
def get_config(self) -> UNet2DConditionModel.Config:
...
def infer(self, sample: openvino._pyopenvino.Tensor, timestep: openvino._pyopenvino.Tensor) -> openvino._pyopenvino.Tensor:
def infer(self, sample: openvino._pyopenvino.Tensor, timestep: openvino._pyopenvino.Tensor, infer_duration: float) -> openvino._pyopenvino.Tensor:
...
def reshape(self, batch_size: int, height: int, width: int, tokenizer_model_max_length: int) -> UNet2DConditionModel:
...
Expand Down

0 comments on commit 2b360aa

Please sign in to comment.