Skip to content

Commit

Permalink
no env in test
Browse files Browse the repository at this point in the history
  • Loading branch information
awarebayes committed Oct 28, 2019
1 parent c795ba1 commit 6b3e4ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2
jobs:
build:
docker:
- image: pytorch/pytorch:1.3-cuda10.1-cudnn7-runtime
- image: pytorch/pytorch


working_directory: ~/repo
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
command: |
. venv/bin/activate
pip3 install torch==1.3.0
python -m pip install -U matplotlib
pip3 install matplotlib
pytest -v -s ./.circleci/tests/main.py
- store_artifacts:
Expand Down
3 changes: 1 addition & 2 deletions .circleci/tests/learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ def test_algo():
value_net = recnn.nn.Critic(1290, 128, 256, 54e-2)
policy_net = recnn.nn.Actor(1290, 128, 256, 6e-1)

cuda = torch.device('cuda')
ddpg = recnn.nn.DDPG(policy_net, value_net)
ddpg = ddpg.to(cuda)
ddpg = ddpg
loss = ddpg.update(batch, learn=True)
check_loss_and_networks(loss, ddpg.nets)

0 comments on commit 6b3e4ed

Please sign in to comment.