Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[PT FE] Set target name as PythonOp name (#26327)

Maxim Vafine0c7c408d3f7
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py
index 8e840d111a3..3a082d8153b 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py
@@ -347,7 +347,7 @@ class TorchScriptPythonDecoder(Decoder):
return self.outputs()[index]
def mark_node(self, node):
- name = self.graph_element.kind()
+ name = self.get_op_type()
if "FrameworkNode" not in node.get_type_name():
name += "/" + node.get_type_name()
if self.graph_element.scopeName():