Skip to content
Snippets Groups Projects
Commit 4b783082 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Hotfix for OperatorImpl binding test

parent 8be9cf2f
No related branches found
No related tags found
No related merge requests found
Pipeline #33214 passed
......@@ -107,8 +107,8 @@ class test_operator_binding(unittest.TestCase):
class PythonCustomImpl(aidge_core.OperatorImpl):
"""Dummy implementation to test that C++ call python code
"""
def __init__(self):
aidge_core.OperatorImpl.__init__(self) # Recquired to avoid type error !
def __init__(self, op: aidge_core.Operator):
aidge_core.OperatorImpl.__init__(self, op) # Recquired to avoid type error !
self.idx = 0
def forward(self):
......@@ -117,8 +117,8 @@ class test_operator_binding(unittest.TestCase):
self.idx += 1
generic_node = aidge_core.GenericOperator("Relu", 1, 1, 1, name="myReLu")
customImpl = PythonCustomImpl()
generic_op = generic_node.get_operator()
customImpl = PythonCustomImpl(generic_op)
generic_op.forward() # Do nothing, no implementation set
generic_op.set_impl(customImpl)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment