Closed badri2304 closed 3 years ago
model(inputs) have to be pushed inside no_grad else it occupies more gpu memory. And previous_video_id.item() has to be there, else the keys for results world be tensor(0), tensor(1).... which gives error when doing json.dump()
thanks for update.
model(inputs) have to be pushed inside no_grad else it occupies more gpu memory. And previous_video_id.item() has to be there, else the keys for results world be tensor(0), tensor(1).... which gives error when doing json.dump()