We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 334fc10 commit 948f99dCopy full SHA for 948f99d
optimum/exporters/openvino/convert.py
@@ -293,7 +293,7 @@ def export_pytorch(
293
logger.info(f"Using framework PyTorch: {torch.__version__}")
294
output = Path(output)
295
296
- if stateful:
+ if ensure_export_task_support_stateful(config.task):
297
# Trigger bettertransformer together with stateful model because OpenVINO HW-dependent transformations expect
298
# both of them are applied to demonstrate the best performance.
299
# TODO: Consider applying bettertransformer regardless of stateful flag -- requires additional validation.
0 commit comments