pfnet / pfrl

PFRL: a PyTorch-based deep reinforcement learning library
MIT License
1.18k stars 158 forks source link

Replace nn.functional.tanh with torch.tanh #64

Closed prabhatnagarajan closed 4 years ago

prabhatnagarajan commented 4 years ago

When I run PFRL code, I get the warning:

/Users/prabhat/miniconda3/envs/pfrl/lib/python3.7/site-packages/torch/nn/functional.py:1558: UserWarning: nn.functional.tanh is deprecated. Use torch.tanh instead.
  warnings.warn("nn.functional.tanh is deprecated. Use torch.tanh instead.")

This is corroborated by https://discuss.pytorch.org/t/torch-tanh-vs-torch-nn-functional-tanh/15897.

prabhatnagarajan commented 4 years ago

/test

pfn-ci-bot commented 4 years ago

Successfully created a job for commit 08e23a4:

prabhatnagarajan commented 4 years ago

/test

pfn-ci-bot commented 4 years ago

Successfully created a job for commit fe013e4: