You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/build.yml
+2-3
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,14 @@ name: Build and test
11
11
# Arguments:
12
12
# event_name: pull_request
13
13
# event_cond: true
14
-
# trigger: -not-available- # not available via repository_dispatch (there's no pull request to test!)
14
+
# trigger: -not-available- # not available via repository_dispatch (we'd need a way to specify which pull request we want tested; not obvious if that's possible)
Copy file name to clipboardexpand all lines: .github/workflows_templates/build.yml.template
+2-3
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,12 @@ name: Build and test
5
5
# Arguments:
6
6
# event_name: pull_request
7
7
# event_cond: true
8
-
# trigger: -not-available- # not available via repository_dispatch (there's no pull request to test!)
8
+
# trigger: -not-available- # not available via repository_dispatch (we'd need a way to specify which pull request we want tested; not obvious if that's possible)
Copy file name to clipboardexpand all lines: README.rst
+5-2
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,13 @@ Available for Python 2.7, Python 3.5, Python 3.6, Python 3.7 and Linux, Mac, Win
23
23
24
24
Requires `PyTorch <http://pytorch.org/>`__.
25
25
26
-
Install via ``pip install signatory_installer``. Then just ``import signatory`` inside Python.
26
+
Install via ``pip install signatory==<SIGNATORY_VERSION>-torch<TORCH_VERSION>``, where ``<SIGNATORY_VERSION>`` is the version of Signatory you would like to download (the most recent version is 1.1.4) and ``<TORCH_VERSION>`` is the version of PyTorch you are using (supported versions are PyTorch 1.2.0 and 1.3.0). Then just ``import signatory`` inside Python.
27
27
28
28
29
-
The ``installer`` is because this command actually downloads a script which detects the version of PyTorch that is currently installed, and then downloads the corresponding version of Signatory. If you already know that you are using e.g. PyTorch 1.2.0 and want Signatory 1.1.4, then you can just run ``pip install signatory==1.1.4-torch1.2.0``.
29
+
For example, if you are using PyTorch 1.2.0 and want Signatory 1.1.4, then you should run ``pip install signatory==1.1.4-torch1.2.0``.
30
+
31
+
32
+
Take care **not** to run ``pip install signatory``, as this will likely download the wrong version. This care is needed due to a `limitation of PyTorch <https://github.com/pytorch/pytorch/issues/28754>`__.
30
33
31
34
Installation from source is also possible; please consult the `documentation <https://signatory.readthedocs.io/en/latest/pages/usage/installation.html#usage-install-from-source>`__. This also includes information on how to run the tests and benchmarks.
0 commit comments