It has displayed as below
load_state_dict() got an unexpected keyword argument 'map_location'

But your comment provides me with a clue.
I have solved this problem by loading the model on GPU.
self.modedl=self.model.to('cuda')

Thank you:)