[PyOV] Update futureWarning in offline_transformations (#15319) (#15342)

This commit is contained in:
Anastasia Kuporosova
2023-01-28 10:01:28 +01:00
committed by GitHub
parent 8c85a3b8d3
commit 3e70387903

View File

@@ -9,8 +9,7 @@ import warnings
warnings.warn(
message="The module is private and following namespace "
"`offline_transformations` will be removed in "
"the future, use `openvino.runtime.passes` instead!",
"`offline_transformations` will be removed in the future.",
category=FutureWarning,
)
@@ -80,7 +79,11 @@ def compress_model_transformation(model):
_base.compress_model_transformation(model)
@deprecated(version="2023.1", message="The module is private and following namespace " "`offline_transformations` will be removed in " "the future.")
@deprecated(version="2023.1",
message="The module is private and following namespace "
"`offline_transformations` will be removed in the future. "
"This transformation will be enabled as a part of read_model method of ov::Core "
"and convert method of ov::Frontend classes.")
def compress_quantize_weights_transformation(model):
_base.compress_quantize_weights_transformation(model)