Skip to content

Commit 9af144f

Browse files
committed
ci: remove gh API requests (#11 monkeypatch) + anonymous links
Signed-off-by: Élie Goudout <[email protected]>
1 parent 9d74007 commit 9af144f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/src/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
#
44
# For the full list of built-in configuration values, see the documentation:
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6-
76
import html
87
import importlib
98
import inspect
109
import os
1110
import re
1211
from collections.abc import Mapping, Sequence
1312
from enum import EnumType
13+
from functools import partial
1414
from itertools import zip_longest
1515
from operator import itemgetter
1616
from os.path import dirname, relpath
@@ -19,6 +19,7 @@
1919
from types import MappingProxyType
2020
from typing import TYPE_CHECKING, Literal, cast
2121

22+
import torch
2223
from paramclasses import IMPL, MISSING, isparamclass
2324
from sphinx.application import Sphinx
2425
from sphinx.util import logging
@@ -297,6 +298,9 @@ def linkcode_resolve(
297298

298299
# -- Options for "sphinx_gallery.gen_gallery" --------------------------------
299300
os.environ.setdefault("HF_DATASETS_DISABLE_PROGRESS_BARS", "true") # No download logs
301+
# Monkeypatch for github.com/ThalesGroup/scio/issues/11
302+
torch.hub.load = partial(torch.hub.load, skip_validation=True)
303+
300304
tutorials_order = [
301305
"inferring_with_confidence.py",
302306
"visualizing_and_evaluating_ood_detection_algorithms.py",

docs/src/user_guide/installation_compatibility.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ If you wish to install from source or wheels manually, you can download `release
1818
1919
OS Compatibility
2020
----------------
21-
The library is available and functional on **Ubuntu**, **Windows** and *MacOS* (minus ``faiss``-related features ─ feel free to show your interest `here <https://github.com/ThalesGroup/scio/issues/2>`_).
21+
The library is available and functional on **Ubuntu**, **Windows** and *MacOS* (minus ``faiss``-related features ─ feel free to show your interest `here <https://github.com/ThalesGroup/scio/issues/2>`__).
2222

2323
Framework Compatiblity
2424
----------------------
2525
Although confidence scores are not a particularity of Neural Networks, ``scio`` is precisely developed to handle such models. More precisely, only *PyTorch* models (inheriting from ``torch.nn.Module``) are currently supported.
2626

2727
GPU Compatibility
2828
-----------------
29-
Our library is **fully compatible** and tested with CUDA devices for native use of GPU acceleration! Note however that features using ``faiss`` currently use CPU-bound indexes, introducing a potential GPU > CPU > GPU bottleneck. This may be improved in future versions ─ feel free to show your interest `here <https://github.com/ThalesGroup/scio/issues/18>`_.
29+
Our library is **fully compatible** and tested with CUDA devices for native use of GPU acceleration! Note however that features using ``faiss`` currently use CPU-bound indexes, introducing a potential GPU > CPU > GPU bottleneck. This may be improved in future versions ─ feel free to show your interest `here <https://github.com/ThalesGroup/scio/issues/18>`__.
3030

3131
Supported Data Types
3232
--------------------

0 commit comments

Comments
 (0)