GPU使用运行程序出现错误:
ensorflow.python.framework.errors_impl.InternalError: failed initializing StreamExecutor for CUDA device ordinal 0: Internal: failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_OUT_OF_MEMORY: out of memory; total memory reported: 11552096256
错误:tensorflow.python.framework.errors_impl.InternalError: Dst tensor is not initialized.
分析:出现这个错误一般是GPU内存耗尽。
解决办法:运行程序之前,先运行export CUDA_VISIBLE_DEVICES=1