Draft: [Feat] Bind dynamic attributes initialization with kwargs
Context
In the export context, while registering supported operators, we may need to initialize DynamicAttributes
within ImplSpec
objects.
Example for the Resize node :
@ExportLibCpp.register("Resize",
aidge_core.ImplSpec(
[ # Input specifications
aidge_core.IOSpec(aidge_core.dtype.any, aidge_core.dformat.nhwc),
aidge_core.IOSpec(aidge_core.dtype.any, aidge_core.dformat.any),
aidge_core.IOSpec(aidge_core.dtype.any, aidge_core.dformat.any)
],
[ # Output specifications
aidge_core.IOSpec(aidge_core.dtype.any, aidge_core.dformat.nhwc)
],
# Attribute specification
aidge_core.DynamicAttributes(interpolation_mode=aidge_core.Interpolation.Mode.CUBIC)
))
However until now, only the DynamicAttributes() (without arguments) constructor is binded.
Changes
Feat
-
Bind DynamicAttributes(**kwargs)
Edited by Axel Farrugia