If your default Slurm association/account does not have GPU partition access. And if you want to request GPU from another account, you can request it using the flags:
#SBATCH --account=Alternate_Account_Name
#SBATCH --nodes=1
#SBATCH --gres=gpu:1
Or when you submit your job using srun, add these flags:
srun -A Alternate_Account_Name --gres=gpu:1 -t 01:00:00 --mem=20GB batch.sh