Skip to content

Commit a49a85e

Browse files
author
Guanheng Zhang
committed
rename the raw_datasets file
1 parent 1291eeb commit a49a85e

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ jobs:
370370
- run:
371371
name: Exit if cache exists
372372
command: |
373-
FILE=.data/cache_status_file.json
373+
FILE=.data/cache_status_file.txt
374374
if test -f "$FILE"; then
375375
cat $FILE
376376
circleci step halt
@@ -400,7 +400,7 @@ jobs:
400400
no_output_timeout: 30m
401401
command: |
402402
.circleci/unittest/linux/scripts/generate_cache.sh
403-
cat .data/cache_status_file.json
403+
cat .data/cache_status_file.txt
404404
- save_cache:
405405

406406
key: data-linux-v1-{{ checksum ".circleci-daily" }}
@@ -495,7 +495,7 @@ jobs:
495495
- run:
496496
name: Exit if cache exists
497497
command: |
498-
FILE=.data/cache_status_file.json
498+
FILE=.data/cache_status_file.txt
499499
if test -f "$FILE"; then
500500
cat $FILE
501501
circleci step halt
@@ -525,7 +525,7 @@ jobs:
525525
no_output_timeout: 30m
526526
command: |
527527
.circleci/unittest/windows/scripts/generate_cache.sh
528-
cat .data/cache_status_file.json
528+
cat .data/cache_status_file.txt
529529
- save_cache:
530530

531531
key: data-windows-v1-{{ checksum ".circleci-daily" }}

.circleci/config.yml.in

+4-4
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ jobs:
370370
- run:
371371
name: Exit if cache exists
372372
command: |
373-
FILE=.data/cache_status_file.json
373+
FILE=.data/cache_status_file.txt
374374
if test -f "$FILE"; then
375375
cat $FILE
376376
circleci step halt
@@ -400,7 +400,7 @@ jobs:
400400
no_output_timeout: 30m
401401
command: |
402402
.circleci/unittest/linux/scripts/generate_cache.sh
403-
cat .data/cache_status_file.json
403+
cat .data/cache_status_file.txt
404404
- save_cache:
405405
{% raw %}
406406
key: data-linux-v1-{{ checksum ".circleci-daily" }}
@@ -495,7 +495,7 @@ jobs:
495495
- run:
496496
name: Exit if cache exists
497497
command: |
498-
FILE=.data/cache_status_file.json
498+
FILE=.data/cache_status_file.txt
499499
if test -f "$FILE"; then
500500
cat $FILE
501501
circleci step halt
@@ -525,7 +525,7 @@ jobs:
525525
no_output_timeout: 30m
526526
command: |
527527
.circleci/unittest/windows/scripts/generate_cache.sh
528-
cat .data/cache_status_file.json
528+
cat .data/cache_status_file.txt
529529
- save_cache:
530530
{% raw %}
531531
key: data-windows-v1-{{ checksum ".circleci-daily" }}
File renamed without changes.

test/common/cache_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import torchtext
44
from .parameterized_utils import load_params
55

6-
CACHE_STATUS_FILE = '.data/cache_status_file.json'
6+
CACHE_STATUS_FILE = '.data/cache_status_file.txt'
77

88

99
def check_cache_status():
@@ -21,7 +21,7 @@ def generate_data_cache():
2121
if os.path.exists(CACHE_STATUS_FILE):
2222
return
2323

24-
raw_data_info = load_params('raw_datasets.json')
24+
raw_data_info = load_params('raw_datasets.txt')
2525
cache_status = {}
2626
for info in raw_data_info:
2727
info = info.args[0]

test/data/test_builtin_datasets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_raw_ag_news(self):
156156
del train_iter, test_iter
157157

158158
@parameterized.expand(
159-
load_params('raw_datasets.json'),
159+
load_params('raw_datasets.txt'),
160160
name_func=_raw_text_custom_name_func)
161161
def test_raw_text_classification(self, info):
162162
dataset_name = info['dataset_name']

0 commit comments

Comments
 (0)