Skip to content
Snippets Groups Projects

Low bit support for ARM Cortex-M export

Merged Thibault Allenet requested to merge low_bit_support_arm into dev
Files
23
@@ -19,6 +19,8 @@ datatype_converter_aide2c = {
def aidge2c(datatype):
"""Convert a aidge datatype to C type
If the type is not convertible to a C type (e.g. int4), return None and raise a warning.
:param datatype: Aidge datatype to convert
:type datatype: :py:object:`aidge_core.DataType`
:return: A string representing the C type
@@ -27,4 +29,6 @@ def aidge2c(datatype):
if datatype in datatype_converter_aide2c:
return datatype_converter_aide2c[datatype]
else:
raise ValueError(f"Unsupported {datatype} aidge datatype")
# raise ValueError(f"Unsupported {datatype} aidge datatype")
aidge_core.Log.warn(f"Unsupported conversion of {datatype} (aidge datatype) to a C type.")
return None
Loading