In this merge request I propose multiple changes which should improve the usage of the Python API of Aidge:
set_attr
method to StaticAttribute objectsset_attr
method to DynamicAttribute objects__set_attr__
& __get_attr__
to StaticAttribute
Allow the use of
dilation_dims = conv.DilationDims # __get_attr__ example
conv.DilationDims = [2, 2] # __set_attr__ example
__set_attr__
& __get_attr__
to DynamicAttribute
**kwargs
to GeneriOp ctor to declare more easily attributes:Usage example
test_op = aidge_core.GenericOperator(
"Test_generic",
1,
0,
1,
name="test_op",
attribute_1=1,
attribute_2=True,
attribute_3=0.001
)
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent