Fixed some non-backward compatible changes in PyTorch caused by the version change:
line 143 in inference_cardinality.py was adding a [10, 8, 1]-sized tensor with a [10, 8]-sized tensor. I assume that somehow this was working in a prior version but not knowing which was that version, I changed it so that it works with PyTorch 0.3.
it was complaining about deprecating the default dim parameter to the softmax() function, so I explicitly passed it.
Changed .travis.yml to use this .environment file when setting up the CI. Tested it here.
Fixed some non-backward compatible changes in PyTorch caused by the version change:
line 143 in
inference_cardinality.py
was adding a[10, 8, 1]
-sized tensor with a[10, 8]
-sized tensor. I assume that somehow this was working in a prior version but not knowing which was that version, I changed it so that it works with PyTorch 0.3.it was complaining about deprecating the default
dim
parameter to thesoftmax()
function, so I explicitly passed it.Changed
.travis.yml
to use this.environment
file when setting up the CI. Tested it here.