浏览代码

Amazon AWS EC2 startup and re-startup scripts (#2282)

5.0
Glenn Jocher GitHub 3 年前
父节点
当前提交
0070995bd5
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      utils/aws/resume.py

+ 3
- 0
utils/aws/resume.py 查看文件

@@ -2,11 +2,14 @@
# Usage: $ python utils/aws/resume.py

import os
import sys
from pathlib import Path

import torch
import yaml

sys.path.append('./') # to run '$ python *.py' files in subdirectories

port = 0 # --master_port
path = Path('').resolve()
for last in path.rglob('*/**/last.pt'):

正在加载...
取消
保存