message="A tensor with all NaNs was produced in Unet."
ifnotshared.cmd_opts.no_half:
message+=" This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try using --no-half commandline argument to fix this."
elifwhere=="vae":
message="A tensor with all NaNs was produced in VAE."