Skip to content

Commit

Permalink
Merge pull request #631 from mv1388/pytorch-1-7-fix
Browse files Browse the repository at this point in the history
Fix moto version
  • Loading branch information
mv1388 committed Oct 30, 2020
2 parents 165aa0d + 8823f1b commit fa7b319
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/package_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install 'six>=1.13.0'
pip install tensorflow keras moto[all] pytest
pip install 'moto[all]==1.3.14' pytest
pip install tensorflow keras
pip install -r requirements.txt
- name: Lint with flake8
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ matrix:
# command to install dependencies
install:
- pip install 'six>=1.13.0'
- pip install tensorflow keras moto[all] pytest
- pip install 'moto[all]==1.3.14' pytest
- pip install tensorflow keras
- pip install -r requirements.txt

script:
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def forward(self, x):
def get_loss(self, batch_data, criterion, device):
x, y = batch_data
pred_y = self(x)
loss = criterion(pred_y, y)
loss = criterion(pred_y.squeeze(), y)
return loss

def get_predictions(self, batch_data, device):
Expand Down

0 comments on commit fa7b319

Please sign in to comment.