In lines 67-70: ``` if train_iter == 5000: print "Switching to user-specified optimizer" optimizer_dict = {"disc": dcgan.d_optims_adam, "gen": dcgan.g_optims_adam} ```` I believe what you intend to have here is dcgan.d_optims and dcgan.g_optims