keras:InternalError: Failed to create session

如题,keras出现以上错误,解决办法:spa

找到占用gpu的进程:code

nvidia-smi -q

杀死这些进程便可:blog

kill -9 xxxxx