Running a PyTorch or ONNX machine learning model on a microcontroller is as easy as bringing the notebook to cAInvas platform using notebook server and compiling it to MCU board of your choice. Here are simple step by step instructions
https://medium.com/ai-techsystems/bringing-pytorch-models-to-microcontrollers-ec53d81c21d4 43