GateNLP / gate-lf-pytorch-json

PyTorch wrapper for the LearningFramework GATE plugin
Apache License 2.0
1 stars 2 forks source link

Upgrade code to 0.4 of pytorch and require 0.4 minimum #12

Open johann-petrak opened 6 years ago

johann-petrak commented 6 years ago

0.4 gets rid of the tensor/variable distinction. adapt the code and make 0.4 the minimum supported pytorch version. 1.0 is probably going to get released in summer 2018, so there is no point in supporting ancient versions.

johann-petrak commented 6 years ago

Tested with 0.4 and it works, made 0.4 the minimum required version. Should get rid of obsolete stuff, see https://pytorch.org/2018/04/22/0_4_0-migration-guide.html

johann-petrak commented 6 years ago

Should check all uses of variables and replace with a tensor that has the gradient enabled.