We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbdaba3 commit 4cd1512Copy full SHA for 4cd1512
src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py
@@ -51,8 +51,10 @@ def __init__(
51
self.out_debug_name_overwrites = {}
52
if graph_element is None:
53
if hasattr(pt_module, "config"):
54
- self.config = pt_module.config.to_dict() if not isinstance(
55
- pt_module.config, dict) else pt_module.config
+ if isinstance(pt_module.config, dict):
+ self.config = pt_module.config
56
+ elif hasattr(pt_module.config, "to_dict"):
57
+ self.config = pt_module.config.to_dict()
58
try:
59
pt_module = self._get_scripted_model(
60
pt_module, example_input, skip_freeze)
0 commit comments