MNIST demo pytorch inside R! :) Run installation script first (see install_libs.r). Then run mnist.r.