diff --git a/src/python/openvino_genai/py_openvino_genai.pyi b/src/python/openvino_genai/py_openvino_genai.pyi index 5d82fa89a3..e734f76460 100644 --- a/src/python/openvino_genai/py_openvino_genai.pyi +++ b/src/python/openvino_genai/py_openvino_genai.pyi @@ -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: ... @@ -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: ... @@ -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: ... @@ -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: ... @@ -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: ... @@ -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: ... @@ -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: ...