Never tried this but as the documentation states you'll need to add the libtensorflow.jar to the userlib directory and the server should be able to access the Java Native Interface (JNI) file for your operating system and processor support.
Not sure if the last part is possible.
An be aware that tensorflow and java is supported only on:
This might be an issue when trying to deploy to a mendix cloud environment as I'm not sure if the cloud environment uses the mentioned linux version.