Skip to content

Commit

Permalink
[BugFix] Migration to pytorch org (#499)
Browse files Browse the repository at this point in the history
* init

* headers
  • Loading branch information
vmoens authored Sep 30, 2022
1 parent 417817a commit 24a4a21
Show file tree
Hide file tree
Showing 19 changed files with 52 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ If you know or suspect the reason for this bug, paste the code lines and suggest
## Checklist

- [ ] I have checked that there is no similar issue in the repo (**required**)
- [ ] I have read the [documentation](https://github.com/facebookresearch/rl/tree/main/docs/) (**required**)
- [ ] I have read the [documentation](https://github.com/pytorch/rl/tree/main/docs/) (**required**)
- [ ] I have provided a minimal working example to reproduce the bug (**required**)
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
You can use the syntax `close #15213` if this solves the issue #15213

- [ ] I have raised an issue to propose this change ([required](https://github.com/facebookresearch/rl/issues) for new features and bug fixes)
- [ ] I have raised an issue to propose this change ([required](https://github.com/pytorch/rl/issues) for new features and bug fixes)

## Types of changes

Expand All @@ -25,7 +25,7 @@ What types of changes does your code introduce? Remove all that do not apply:
Go over all the following points, and put an `x` in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

- [ ] I have read the [CONTRIBUTION](https://github.com/facebookresearch/rl/blob/main/CONTRIBUTING.md) guide (**required**)
- [ ] I have read the [CONTRIBUTION](https://github.com/pytorch/rl/blob/main/CONTRIBUTING.md) guide (**required**)
- [ ] My change requires a change to the documentation.
- [ ] I have updated the tests accordingly (*required for a bug fix or a new feature*).
- [ ] I have updated the documentation accordingly.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![facebookresearch](https://circleci.com/gh/facebookresearch/rl.svg?style=shield)](https://circleci.com/gh/facebookresearch/rl)
[![pytorch](https://circleci.com/gh/pytorch/rl.svg?style=shield)](https://circleci.com/gh/pytorch/rl)

# TorchRL

Expand Down Expand Up @@ -301,9 +301,9 @@ algorithms. For instance, here's how to code a rollout in TorchRL:
```
</details>

- A series of efficient [loss modules](https://github.com/facebookresearch/rl/blob/main/torchrl/objectives/costs)
- A series of efficient [loss modules](https://github.com/pytorch/rl/blob/main/torchrl/objectives/costs)
and highly vectorized
[functional return and advantage](https://github.com/facebookresearch/rl/blob/main/torchrl/objectives/returns/functional.py)
[functional return and advantage](https://github.com/pytorch/rl/blob/main/torchrl/objectives/returns/functional.py)
computation.

<details>
Expand Down Expand Up @@ -399,7 +399,7 @@ it in develop mode as this will make it possible to pull the latest changes and
benefit from them immediately.
Start by cloning the repo:
```
git clone https://github.com/facebookresearch/rl
git clone https://github.com/pytorch/rl
```
Go to the directory where you have cloned the torchrl repo and install it
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _main():
version=version,
author="torchrl contributors",
author_email="[email protected]",
url="https://github.com/facebookresearch/rl",
url="https://github.com/pytorch/rl",
long_description=long_description,
long_description_content_type="text/markdown",
license="BSD",
Expand Down
5 changes: 5 additions & 0 deletions torchrl/data/replay_buffers/storages.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import abc
import os
from typing import Any, Sequence, Union
Expand Down
2 changes: 1 addition & 1 deletion torchrl/data/tensor_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def encode(self, val: Union[np.ndarray, torch.Tensor]) -> torch.Tensor:
# gym used to return lists of images since 0.26.0
# We convert these lists in np.array or take the first element
# if there is just one.
# See https://github.com/facebookresearch/rl/pull/403/commits/73d77d033152c61d96126ccd10a2817fecd285a1
# See https://github.com/pytorch/rl/pull/403/commits/73d77d033152c61d96126ccd10a2817fecd285a1
val = val[0]
else:
val = np.array(val)
Expand Down
5 changes: 5 additions & 0 deletions torchrl/envs/gym_like.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations

import warnings
Expand Down
5 changes: 5 additions & 0 deletions torchrl/envs/transforms/r3m.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from typing import List, Optional, Union

import torch
Expand Down
5 changes: 5 additions & 0 deletions torchrl/envs/transforms/vip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from typing import List, Optional, Union

import torch
Expand Down
5 changes: 5 additions & 0 deletions torchrl/modules/distributions/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from typing import Union

import torch
Expand Down
5 changes: 5 additions & 0 deletions torchrl/modules/functional_modules.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from copy import deepcopy

import torch
Expand Down
5 changes: 5 additions & 0 deletions torchrl/modules/tensordict_module/deprec.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations

from _warnings import warn
Expand Down
2 changes: 1 addition & 1 deletion tutorials/coding_ddpg.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"tags": []
},
"source": [
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/facebookresearch/rl/blob/main/tutorials/coding_ddpg.ipynb)\n",
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/pytorch/rl/blob/main/tutorials/coding_ddpg.ipynb)\n",
"\n",
"# Coding DDPG using TorchRL\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/coding_dqn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"source": [
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/facebookresearch/rl/blob/main/tutorials/coding_ddpg.ipynb)\n",
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/pytorch/rl/blob/main/tutorials/coding_ddpg.ipynb)\n",
"\n",
"# Coding a pixel-based DQN using TorchRL\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions tutorials/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "308f4833-c7ec-4040-b724-df01d437ce44",
"metadata": {},
"source": [
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/facebookresearch/rl/blob/main/tutorials/demo.ipynb)\n",
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/pytorch/rl/blob/main/tutorials/demo.ipynb)\n",
"\n",
"# TorchRL Demo\n",
"\n",
Expand All @@ -19,7 +19,7 @@
"\n",
"TorchRL is an open-source Reinforcement Learning (RL) library for PyTorch.\n",
"\n",
"https://github.com/facebookresearch/rl\n",
"https://github.com/pytorch/rl\n",
"\n",
"The PyTorch ecosystem team (Meta) has decided to invest in that library to provide a leading platform to develop RL solutions in research settings.\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/envs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "e8966967-97bc-406e-a2f4-4a62d8f9e895",
"metadata": {},
"source": [
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/facebookresearch/rl/blob/main/tutorials/envs.ipynb)\n",
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/pytorch/rl/blob/main/tutorials/envs.ipynb)\n",
"\n",
"# TorchRL envs (`torchrl.envs`)\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/multi_task.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "0e971c71-dc14-46db-a3a0-a71423ebece0",
"metadata": {},
"source": [
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/facebookresearch/rl/blob/main/tutorials/multi_task.ipynb)\n",
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/pytorch/rl/blob/main/tutorials/multi_task.ipynb)\n",
"\n",
"# Task-specific policy in multi-task environments\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tensordict.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "cb434aa2",
"metadata": {},
"source": [
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/facebookresearch/rl/blob/main/tutorials/tensordict.ipynb)\n",
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/pytorch/rl/blob/main/tutorials/tensordict.ipynb)\n",
"\n",
"# TensorDict tutorial"
]
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tensordictmodule.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "3be0fafd",
"metadata": {},
"source": [
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/facebookresearch/rl/blob/main/tutorials/tensordictmodule.ipynb)\n",
"[<img align=\"left\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">](https://colab.research.google.com/github/pytorch/rl/blob/main/tutorials/tensordictmodule.ipynb)\n",
"\n",
"# TensorDictModule"
]
Expand Down

0 comments on commit 24a4a21

Please sign in to comment.