The aim of this laboratory is to enhance a simple TensorFlow Lite delegate.
- Check the delegate-example subdirectory - go through the CMakeLists.txt and sources.
- Build the delegate example based on delegate's README.md.
- Check the delegate_experiment script.
[1pt]Implementconvert_onnx_to_tensorflowmethod - it should useonnx2tf.convertmethod. Yielded model can be saved usingsavemethod.[1pt]Implementconvert_to_tflitemethod - it should load the model saved to file inconvert_onnx_to_tensorflow. One method to load can betf.keras.models.load_model, depending on used format.[1pt]Add loading delegate in the delegate_experiment - use--delegate-pathargument.- Run the test script using
models/test-delegate-two-inputs.onnxmodel, i.e.:
python3 -m dl_in_iot_course.l05_tflite_delegate.delegate_experiment \
--input-onnx-model-path models/test-delegate-two-inputs.onnx \
--tensorflow-model-path build/test-delegate-model.pb \
--compiled-model-path build/test-delegate.tflite \
--delegate-path ./delegate-example/build/libeigen-delegate.so
[1pt]Add Eigen-based implementation of addition in the delegate_experiment - useEigen::MapandEigen::VectorXfclasses to implement it (remember to rebuild the C++ project after modifications).[1pt]Make sure the delegate_experiment script runs properly and doesn't fail using the delegate_experiment script (there should be no assert failure or any other error).
Additional factors:
[1pt]Git history quality