Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit d2112ec

Browse files
author
nayef211
committed
Merge branch 'main' into test/mock_imdb
2 parents 826dc7a + da34de2 commit d2112ec

34 files changed

+1304
-442
lines changed

.circleci/config.yml

Lines changed: 1 addition & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 1 addition & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -361,44 +361,6 @@ jobs:
361361
conda activate python${PYTHON_VERSION}
362362
python -c "import torchtext"
363363

364-
cachesetup_linux:
365-
<<: *binary_common
366-
docker:
367-
- image: "pytorch/manylinux-cuda102"
368-
resource_class: 2xlarge+
369-
steps:
370-
- checkout
371-
- designate_upload_channel
372-
- load_conda_channel_flags
373-
- generate_cachekey
374-
- restore_cache:
375-
keys:
376-
{% raw %}
377-
- v1-linux-cache-index-{{ checksum ".cachekey" }}
378-
{% endraw %}
379-
- run:
380-
name: Generate cache
381-
no_output_timeout: 30m
382-
command: |
383-
if [ ! -f /root/.torchtext/cache/cache_status_file.json ] ; then
384-
.circleci/unittest/linux/scripts/setup_env.sh
385-
.circleci/unittest/linux/scripts/install.sh
386-
.circleci/unittest/linux/scripts/generate_cache.sh
387-
fi
388-
cat /root/.torchtext/cache/cache_status_file.json
389-
- save_cache:
390-
{% raw %}
391-
key: v1-linux-dataset-{{ checksum ".cachekey" }}
392-
{% endraw %}
393-
paths:
394-
- /root/.torchtext/cache
395-
- save_cache:
396-
{% raw %}
397-
key: v1-linux-cache-index-{{ checksum ".cachekey" }}
398-
{% endraw %}
399-
paths:
400-
- /root/.torchtext/cache/cache_status_file.json
401-
402364
unittest_linux:
403365
<<: *binary_common
404366
docker:
@@ -419,7 +381,6 @@ jobs:
419381
keys:
420382
{% raw %}
421383
- v1-linux-dataset-vector-{{ checksum ".cachekey" }}
422-
- v1-linux-dataset-{{ checksum ".cachekey" }}
423384
{% endraw %}
424385
- run:
425386
name: Run tests
@@ -432,50 +393,12 @@ jobs:
432393
{% endraw %}
433394
paths:
434395
- .vector_cache
435-
- /root/.torchtext/cache
436396
- run:
437397
name: Post process
438398
command: .circleci/unittest/linux/scripts/post_process.sh
439399
- store_test_results:
440400
path: test-results
441401

442-
cachesetup_windows:
443-
<<: *binary_common
444-
executor:
445-
name: windows-cpu
446-
steps:
447-
- checkout
448-
- designate_upload_channel
449-
- load_conda_channel_flags
450-
- generate_cachekey
451-
- restore_cache:
452-
keys:
453-
{% raw %}
454-
- v1-windows-cache-index-{{ checksum ".cachekey" }}
455-
{% endraw %}
456-
- run:
457-
name: Generate daily data Cache
458-
no_output_timeout: 30m
459-
command: |
460-
if [ ! -f C:/Users/circleci/.torchtext/cache/cache_status_file.json ] ; then
461-
.circleci/unittest/windows/scripts/setup_env.sh
462-
.circleci/unittest/windows/scripts/install.sh
463-
.circleci/unittest/windows/scripts/generate_cache.sh
464-
fi
465-
cat C:/Users/circleci/.torchtext/cache/cache_status_file.json
466-
- save_cache:
467-
{% raw %}
468-
key: v1-windows-dataset-{{ checksum ".cachekey" }}
469-
{% endraw %}
470-
paths:
471-
- C:/Users/circleci/.torchtext/cache
472-
- save_cache:
473-
{% raw %}
474-
key: v1-windows-cache-index-{{ checksum ".cachekey" }}
475-
{% endraw %}
476-
paths:
477-
- C:/Users/circleci/.torchtext/cache/cache_status_file.json
478-
479402
unittest_windows:
480403
<<: *binary_common
481404
executor:
@@ -495,7 +418,6 @@ jobs:
495418
keys:
496419
{% raw %}
497420
- v1-windows-dataset-vector-{{ checksum ".cachekey" }}
498-
- v1-windows-dataset-{{ checksum ".cachekey" }}
499421
{% endraw %}
500422

501423
- run:
@@ -509,7 +431,6 @@ jobs:
509431
{% endraw %}
510432
paths:
511433
- .vector_cache
512-
- C:/Users/circleci/.torchtext/cache
513434
- run:
514435
name: Post process
515436
command: .circleci/unittest/windows/scripts/post_process.sh
@@ -552,7 +473,7 @@ jobs:
552473
set -x
553474
pushd docs
554475
pip install -r requirements.txt
555-
make html
476+
BUILD_GALLERY=1 make 'SPHINXOPTS=-W' html
556477
popd
557478
- persist_to_workspace:
558479
root: ./

.circleci/regenerate.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,11 @@ def indent(indentation, data_list):
160160
def unittest_workflows(indentation=6):
161161
w = []
162162
for os_type in ["linux", "windows"]:
163-
w.append({
164-
f"cachesetup_{os_type}": {
165-
"name": f"cachesetup_{os_type}_py_any",
166-
"python_version": PYTHON_VERSIONS[0],
167-
}
168-
})
169-
170163
for i, python_version in enumerate(PYTHON_VERSIONS):
171164
w.append({
172165
f"unittest_{os_type}": {
173166
"name": f"unittest_{os_type}_py{python_version}",
174167
"python_version": python_version,
175-
"requires": [f"cachesetup_{os_type}_py_any"],
176168
}
177169
})
178170

.circleci/unittest/linux/scripts/generate_cache.sh

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

.circleci/unittest/windows/scripts/generate_cache.sh

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ instance/
7777

7878
# Sphinx documentation
7979
docs/_build/
80+
docs/src/
81+
docs/source/tutorials
82+
docs/source/gen_modules
8083

8184
# PyBuilder
8285
target/

docs/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
sphinx==3.5.4
2-
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
2+
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@b4d0005#egg=pytorch_sphinx_theme
3+
matplotlib
4+
sphinx_gallery

0 commit comments

Comments
 (0)