Draft: [Feat] Add symlinks copies for export
Context
It is sometimes tedious to debug on exports as it requires to go through all these steps :
- Generate a standalone export;
- Compile and run the code;
- Finding then solving the bug (testing to verify it has been solved);
- Then copy the files changes into the export module (often forgetting half of them in the process).
This last step is the one we seek to automate with this MR, as now, the copy_files()
and the new copy_folder()
function can generate symbolic links instead of actually copying the files.
The ExportNode
class now holds a static_folders
variable acting as the existing static_files
variable but for whole folders.
This MR also adds a function to convert numpy types into c types.


- export_utils/init.py : Add the
copy_folder()
function access and the data conversion functions; - code_generation.py : Add the
copy_folder()
function implementation and the symlink argument; - export_registry.py : Add the
static_folder
variable in theExportNode
class; - scheduler_export.py : Now export static files and folders and generate symlinks according to the
test_mode
argument. Iftest_mode
is set toTrue
, symbolic links will be generated to ease the debug process. - data_conversion.py : Add the numpy2c converter.
Merge request reports
Activity
added 7 commits
-
e5470658...6de11c4b - 5 commits from branch
eclipse/aidge:dev
- 240fa8a4 - Feat Add a copy_folder function and allow the copies to be done through simlinks
- 52d8ff76 - [Feat] Add numpy2c converter
-
e5470658...6de11c4b - 5 commits from branch
added 9 commits
-
52d8ff76...cb7ee7d5 - 7 commits from branch
eclipse/aidge:dev
- 9e4d8b1e - Feat Add a copy_folder function and allow the copies to be done through simlinks
- bcff8b64 - [Feat] Add numpy2c converter
-
52d8ff76...cb7ee7d5 - 7 commits from branch
assigned to @axelfarr
requested review from @pineapple
changed milestone to %aidge v0.6.0
added Feature 🚀 label
added 46 commits
-
bcff8b64...16be15b7 - 44 commits from branch
eclipse/aidge:dev
- fe8cad12 - Feat Add a copy_folder function and allow the copies to be done through simlinks
- 5f9cff67 - [Feat] Add numpy2c converter
-
bcff8b64...16be15b7 - 44 commits from branch
51 52 datatype_converter_numpy2c = { 53 np.float64 : "double", 54 np.float32 : "float", 55 np.float16 : "half_float::half", 56 np.int8 : "int8_t", 57 np.int16 : "int16_t", 58 np.int32 : "int32_t", 59 np.int64 : "int64_t", 60 np.uint8 : "uint8_t", 61 np.uint16 : "uint16_t", 62 np.uint32 : "uint32_t", 63 np.uint64 : "uint64_t" 64 } 65 66 def numpy2c(datatype): @axelfarr I don't think we need this function! IMO we should work with Aidge dtype!
- Resolved by Maxence Naud
added StatusWork in Progress label