Skip to content

Commit

Permalink
rename the raw_datasets file
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanheng Zhang committed Mar 4, 2021
1 parent 1291eeb commit a49a85e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ jobs:
- run:
name: Exit if cache exists
command: |
FILE=.data/cache_status_file.json
FILE=.data/cache_status_file.txt
if test -f "$FILE"; then
cat $FILE
circleci step halt
Expand Down Expand Up @@ -400,7 +400,7 @@ jobs:
no_output_timeout: 30m
command: |
.circleci/unittest/linux/scripts/generate_cache.sh
cat .data/cache_status_file.json
cat .data/cache_status_file.txt
- save_cache:

key: data-linux-v1-{{ checksum ".circleci-daily" }}
Expand Down Expand Up @@ -495,7 +495,7 @@ jobs:
- run:
name: Exit if cache exists
command: |
FILE=.data/cache_status_file.json
FILE=.data/cache_status_file.txt
if test -f "$FILE"; then
cat $FILE
circleci step halt
Expand Down Expand Up @@ -525,7 +525,7 @@ jobs:
no_output_timeout: 30m
command: |
.circleci/unittest/windows/scripts/generate_cache.sh
cat .data/cache_status_file.json
cat .data/cache_status_file.txt
- save_cache:

key: data-windows-v1-{{ checksum ".circleci-daily" }}
Expand Down
8 changes: 4 additions & 4 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ jobs:
- run:
name: Exit if cache exists
command: |
FILE=.data/cache_status_file.json
FILE=.data/cache_status_file.txt
if test -f "$FILE"; then
cat $FILE
circleci step halt
Expand Down Expand Up @@ -400,7 +400,7 @@ jobs:
no_output_timeout: 30m
command: |
.circleci/unittest/linux/scripts/generate_cache.sh
cat .data/cache_status_file.json
cat .data/cache_status_file.txt
- save_cache:
{% raw %}
key: data-linux-v1-{{ checksum ".circleci-daily" }}
Expand Down Expand Up @@ -495,7 +495,7 @@ jobs:
- run:
name: Exit if cache exists
command: |
FILE=.data/cache_status_file.json
FILE=.data/cache_status_file.txt
if test -f "$FILE"; then
cat $FILE
circleci step halt
Expand Down Expand Up @@ -525,7 +525,7 @@ jobs:
no_output_timeout: 30m
command: |
.circleci/unittest/windows/scripts/generate_cache.sh
cat .data/cache_status_file.json
cat .data/cache_status_file.txt
- save_cache:
{% raw %}
key: data-windows-v1-{{ checksum ".circleci-daily" }}
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions test/common/cache_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import torchtext
from .parameterized_utils import load_params

CACHE_STATUS_FILE = '.data/cache_status_file.json'
CACHE_STATUS_FILE = '.data/cache_status_file.txt'


def check_cache_status():
Expand All @@ -21,7 +21,7 @@ def generate_data_cache():
if os.path.exists(CACHE_STATUS_FILE):
return

raw_data_info = load_params('raw_datasets.json')
raw_data_info = load_params('raw_datasets.txt')
cache_status = {}
for info in raw_data_info:
info = info.args[0]
Expand Down
2 changes: 1 addition & 1 deletion test/data/test_builtin_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_raw_ag_news(self):
del train_iter, test_iter

@parameterized.expand(
load_params('raw_datasets.json'),
load_params('raw_datasets.txt'),
name_func=_raw_text_custom_name_func)
def test_raw_text_classification(self, info):
dataset_name = info['dataset_name']
Expand Down

0 comments on commit a49a85e

Please sign in to comment.