Spaces:
Runtime error
Runtime error
Yixin Liu commited on
Commit ·
03ed9e9
1
Parent(s): 996a114
upload
Browse files- parse_code.py +1 -3
parse_code.py
CHANGED
|
@@ -35,9 +35,7 @@ def parse_base_code(contents, debug = False):
|
|
| 35 |
"""cd $(cd "$(dirname "$0")";pwd); source gpu_utility.sh\n\n"""
|
| 36 |
, "device_control"))
|
| 37 |
spans_with_type_added_device_control.append((span, type_))
|
| 38 |
-
spans_with_type_added_device_control.append(("""date_stamp=`date '+%Y-%m-%d-%H'
|
| 39 |
-
log_dir="logs/$exp_name/$date_stamp"
|
| 40 |
-
mkdir -p $log_dir\n""", "logging"))
|
| 41 |
# spans_with_type_added_device_control.append((gpu_env, "device_control"))
|
| 42 |
# spans_with_type_added_device_control.append((update_device_func, "device_control"))
|
| 43 |
elif type_ == "loop":
|
|
|
|
| 35 |
"""cd $(cd "$(dirname "$0")";pwd); source gpu_utility.sh\n\n"""
|
| 36 |
, "device_control"))
|
| 37 |
spans_with_type_added_device_control.append((span, type_))
|
| 38 |
+
spans_with_type_added_device_control.append(("""date_stamp=`date '+%Y-%m-%d-%H'`\nog_dir="logs/$exp_name/$date_stamp"\nmkdir -p $log_dir\n""", "logging"))
|
|
|
|
|
|
|
| 39 |
# spans_with_type_added_device_control.append((gpu_env, "device_control"))
|
| 40 |
# spans_with_type_added_device_control.append((update_device_func, "device_control"))
|
| 41 |
elif type_ == "loop":
|