Slice and Identity node
Context
Those nodes were needed in particular for the export of encoders with Tiling.
Modified files
- Slice :
-
aidge_export_cpp/kernels/Slice.hpp
kernel implementation, checking every input element and copy it to output if its index on axes is between boundaries with right step. -
aidge_export_cpp/templates/configuration/slice_config.jinja
jinja config -
aidge_export_cpp/templates/kernel_forward/slice_forward.jinja
jinja forward -
aidge_export_cpp/operators/Slice.py
loads parameter attributes, turn them to positive values and check boundaries
-
- Identity :
-
aidge_export_cpp/kernels/Identity.hpp
same as reshape. -
aidge_export_cpp/templates/configuration/identity_config.jinja
jinja config -
aidge_export_cpp/templates/kernel_forward/identity_forward.jinja
jinja forward aidge_export_cpp/operators/Identity.py
-
- Bugs aidge_core#311
-
aidge_export_cpp/templates/configuration/_meminfo.jinja
add a check on in_name before access -
aidge_export_cpp/templates/configuration/_def_io.jinja
add a check on in_name before access
-
- Unit tests :
-
aidge_export_cpp/unit_tests/test_export.py
added tests for slice and identity export
-
TODO
-
DONE