ValueError: Current device id is: None

ValueError: Current device id is: None;请问这个问题怎么解决