You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/bindings/python/src/openvino/frontend/pytorch/inlined_extension.py
+22-6Lines changed: 22 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,22 @@ def __init__(self, *args):
23
23
# TODO: What about attributes?
24
24
super().__init__(self, args)
25
25
self.attrs= {"id": global_counter_id} # `id` attribute distinguishes different instances of the same class, we need it because different instances may have different behaviour
26
-
# print(f'Made custom op class with id = {self.attrs["id"]}')
27
-
# print(f"Input signature: {input_signature}")
28
-
# print(f"Output signature: {output_signature}")
26
+
#print('output_signature from ctro:', output_signature)
27
+
ifoutput_signature== ():
28
+
# The operation doesn't have outputs, so we need to take extra care to avoid eliminating the op from the graph
29
+
#print('===================== MARKING AS SINK ========================')
30
+
self.get_rt_info()['__sink__'] =True
31
+
#print(f'Made custom op class with id = {self.attrs["id"]}')
/// @brief Sink operation that preserves another node from removing from the graph, when it is not possible to derive that target node op from Sink class
0 commit comments