Yixin Liu commited on
Commit
04d5b42
1 Parent(s): 03ed9e9
Files changed (1) hide show
  1. parse_code.py +1 -1
parse_code.py CHANGED
@@ -35,7 +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'`\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":
 
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'`\nlog_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":