Atcold / pytorch-PPUU

Code for Prediction and Planning Under Uncertainty (PPUU)
https://youtu.be/X2s7gy3wIYw
MIT License
203 stars 54 forks source link

Funky copying syntax #41

Open Atcold opened 5 years ago

Atcold commented 5 years ago

/home/atcold/Work/GitHub/pytorch-Traffic-Simulator/utils.py:72: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).