Attempting to fetch value instead of handling error Internal: failed initializing StreamExecutor for

If memory is occupied by other tensorflow programs, you can use nvida SMI to view the occupied processes, and kill – 9. Otherwise, you need to use the following methods:

 

Read More: