From 3736fcaa121c045d9ad45aaa1ef4c873cf45e77f Mon Sep 17 00:00:00 2001 From: Cavus Mustafa Date: Tue, 10 Oct 2023 22:18:29 -0700 Subject: [PATCH] Replace op.Constant with make_constant in fx_decoder --- src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py index 7b0143101852fa..79661636bd4ad1 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py @@ -223,7 +223,7 @@ def as_constant(self): if self.pt_module.op == 'get_attr': # Extract Constant from FX module field ret = fetch_attr(self.fx_gm, self.pt_module.target) - ov_const = op.Constant(ret.numpy()) + ov_const = make_constant(ret.numpy()) return ov_const.outputs()