I’m unsure what’s causing the error as I cannot reproduce it locally by trying to pass invalid inputs to torch.load. Could you check what path_of_data contains?
Thank you for your reply! I stored the variable “state” in the data_path. the “state” is a dictionary variable, which includes three model : value_net1,value_net2 and q_approximation, and their optimizers.
Thank you! Maybe there is something wrong with my model. But what strange is that these model perform welI during training, and can be saved. I seems need to check my models again. thank you again!