prevent infinite loop between generate and generate_np
prevent infinite loop between generate and generate_np

openai/cleverhans,fartashf/cleverhans,cleverhans-lab/cleverhans,carlini/cleverhans,cleverhans-lab/cleverhans,cihangxie/cleverhans,carlini/cleverhans,cleverhans-lab/cleverhans