We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99cf01f commit eaa068dCopy full SHA for eaa068d
optimum/intel/generation/modeling.py
@@ -105,13 +105,13 @@ def __init__(
105
self.normalized_config = NormalizedConfigManager.get_normalized_config_class(config.model_type)(config)
106
self.model_dtype = kwargs.get("model_dtype", None)
107
108
- logger.warning(
109
- f"The class `{self.__class__}` has been depreciated and will be removed in optimum-intel v1.14, please use IPEXModel instead"
110
- )
111
if isinstance(model, torch.jit.ScriptModule):
112
self.input_names = {
113
inputs.debugName().split(".")[0] for inputs in model.graph.inputs() if inputs.debugName() != "self"
114
}
+ logger.warning(
+ f"The class `{self.__class__}` has been depreciated for TorchScript model, please use IPEXModel instead"
+ )
115
else:
116
self.input_names = set()
117
0 commit comments