unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 4ab55b4ceb07bcafb2ae894ced20625a4b6cb11c 734 bytes (raw)
name: packages/patches/onnx-skip-model-downloads.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
A few tests require downloading models from URLs such as
 <https://s3.amazonaws.com/download.onnx/models/opset_9/zfnet512.tar.gz>.
Skip those.

diff --git a/onnx/backend/test/runner/__init__.py b/onnx/backend/test/runner/__init__.py
index 049ed57b..f236f1bf 100644
--- a/onnx/backend/test/runner/__init__.py
+++ b/onnx/backend/test/runner/__init__.py
@@ -202,6 +202,7 @@ class Runner(object):
             print('Start downloading model {} from {}'.format(
                 model_test.model_name,
                 model_test.url))
+            raise unittest.SkipTest('Skipping download')
             urlretrieve(model_test.url, download_file.name)
             print('Done')
             with tarfile.open(download_file.name) as t:

debug log:

solving 4ab55b4ceb07bcafb2ae894ced20625a4b6cb11c ...
found 4ab55b4ceb07bcafb2ae894ced20625a4b6cb11c in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).