One issue I’ve noticed is that your get_pretrained_model function does not return any model.
Like @Narine_Kokhlikyan mentioned, you should change your last line to be visualizer.render(debug=True)  to see the Python errors. In the next version of Captum this will be turned on by default.