Skip to content

Commit

Permalink
Moves fork reference to the docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhatnagarajan committed Dec 16, 2020
1 parent d273d1e commit 719dfce
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pfrl/utils/pretrained_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,13 @@

download_url = "https://chainer-assets.preferred.jp/pfrl/"

"""
This function forked from Chainer, an MIT-licensed project,
https://github.com/chainer/chainer/blob/v7.4.0/chainer/dataset/download.py#L70
"""


def _get_model_directory(model_name, create_directory=True):
"""Gets the path to the directory of given model.
The generated path is just a concatenation of the global root directory
and the model name.
and the model name. This function forked from Chainer, an MIT-licensed project,
https://github.com/chainer/chainer/blob/v7.4.0/chainer/dataset/download.py#L43
Args:
model_name (str): Name of the model.
create_directory (bool): If True (default), this function also creates
Expand Down Expand Up @@ -96,6 +92,8 @@ def cached_download(url):
It downloads a file from the URL if there is no corresponding cache.
If there is already a cache for the given URL, it just returns the
path to the cache without downloading the same file.
This function forked from Chainer, an MIT-licensed project,
https://github.com/chainer/chainer/blob/v7.4.0/chainer/dataset/download.py#L70
Args:
url (string): URL to download from.
Returns:
Expand Down

0 comments on commit 719dfce

Please sign in to comment.