Skip to content

Commit 4041121

Browse files
authored
Merge pull request #645 from ProGamerGov/master
update libraries and testing
2 parents b26d630 + 2db93a7 commit 4041121

File tree

242 files changed

+20967
-4453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+20967
-4453
lines changed

.circleci/config.yml

Lines changed: 0 additions & 283 deletions
This file was deleted.

.conda/meta.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,29 @@ build:
1313

1414
requirements:
1515
host:
16-
- python>=3.6
16+
- python>=3.9
17+
- setuptools
1718
run:
18-
- numpy
19-
- pytorch>=1.6
19+
- numpy<2.0
20+
- pytorch>=1.10
2021
- matplotlib-base
22+
- tqdm
23+
- packaging
2124

2225
test:
2326
imports:
2427
- captum
2528

2629
about:
2730
home: https://captum.ai
28-
license: BSD
31+
license: BSD-3
2932
license_file: LICENSE
3033
summary: Model interpretability for PyTorch
34+
description: |
35+
Captum is a model interpretability and understanding library for PyTorch.
36+
Captum means comprehension in Latin and contains general purpose implementations
37+
of integrated gradients, saliency maps, smoothgrad, vargrad and others for
38+
PyTorch models. It has quick integration for models built with domain-specific
39+
libraries such as torchvision, torchtext, and others.
3140
doc_url: https://captum.ai
3241
dev_url: https://github.com/pytorch/captum

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Captum Lint
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
tests:
13+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
14+
with:
15+
runner: linux.12xlarge
16+
docker-image: cimg/python:3.11
17+
repository: pytorch/captum
18+
script: |
19+
sudo chmod -R 777 .
20+
./scripts/install_via_pip.sh
21+
ufmt check .
22+
flake8
23+
sphinx-build -WT --keep-going sphinx/source sphinx/build

.github/workflows/retry.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Rerun tests if failed
2+
on:
3+
workflow_run:
4+
workflows: ["Unit-tests for Conda install", "Unit-tests for Pip install with mypy type checks", "Unit-tests for Pip install"]
5+
types: ["completed"]
6+
7+
permissions:
8+
actions: write
9+
10+
jobs:
11+
rerun-tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Log workflow metadata
15+
run: |
16+
echo "ID: ${{ github.event.workflow_run.id }}"
17+
echo "attempt: ${{ github.event.workflow_run.run_attempt }}"
18+
echo "event: ${{ github.event.workflow_run.conclusion }}"
19+
echo "event: ${{ github.event.workflow_run.event }}"
20+
- name: Rerun Failed Workflows
21+
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt <= 3
22+
env:
23+
GH_TOKEN: ${{ github.token }}
24+
RUN_ID: ${{ github.event.workflow_run.id }}
25+
run: |
26+
gh run rerun ${RUN_ID} --repo="${{ github.repository }}" --failed

0 commit comments

Comments
 (0)