message="A tensor with all NaNs was produced in Unet."
message="A tensor with 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 setting the \"Upcast cross attention layer to float32\" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this."
elifwhere=="vae":
message="A tensor with all NaNs was produced in VAE."