[DataType] Complete python binding to map all dtype values
Context
Complete python binding to map all dtype values, i.e. from python aidge_core.dtype.[float32|float64|int64|...] Defined str(aidge_core.dtype) to return:"float32"|"float64"|"int64"|...
This makes str(aidge_core.dtype) equal to str(ndarray.dtype) for common scalar types.
Modified files
Modified pybind_Data.cpp
:
- Add python enum values for all defined dtypes as per the table of dtype names (lower case of the dtype names).
- Add str() binding such that str(tensor.dtype()) return bare enumeration names, suitable for comparison with numpy dtype names.
Detailed major modifications
No major modification.
Actually now gives access to all aidge_ocre dtypes as the binding is automatically generated form the type names.
TODO
No todo forecasted.
Merge request reports
Activity
Filter activity
added 1 commit
- 883cddc3 - [DataType] Complete python binding to map all dtype values
added Enhancement ⭐ label
added 11 commits
-
883cddc3...f4c537de - 10 commits from branch
eclipse/aidge:dev
- 25666644 - [DataType] Complete python binding to map all dtype values
-
883cddc3...f4c537de - 10 commits from branch
mentioned in commit e754cb7b
Please register or sign in to reply