On how to efficiently implement deep learning algorithms on PYNQ platform