Closed Lireanstar closed 4 years ago
@Libincn-HNU What is the version number of PyTorch? We recommend you to use PyTorch 1.0.
@SivilTaram I use the torch 1.3.0, i try to change the version to fix it
@Libincn-HNU Looking forward to your further feedback.
Hi, i change the source code :
is_end = is_end.bool() | (predict_tok == self.end_idx).bool().view(-1)
finally it works, ignoring the warning:
/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
Finally, it appears:
[ time:127s parleys:54 ] {'reward_var': 0.35737055998582107, 'reward': 0.0036568641662597656, 'num_selfplay_episode': 13, 'num_selfplay_turns': 78, 'total_reward': -0.01236748007627634}
Besides, i lowered the batch_size : )
Hi, after i train the recevier and transmitter model ,then i run the train_psquare.py In my local environment, I have two cards, and I run it in my terminal according to the following code:
Then the errors occur as below:
How can i fix this error? thanks!