Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
656c27c3
Unverified
Commit
656c27c3
authored
Sep 21, 2020
by
Sam Shleifer
Committed by
GitHub
Sep 21, 2020
Browse files
[s2s] save hostname with repo info (#7301)
* save hostname
parent
34a1b75f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
examples/seq2seq/utils.py
examples/seq2seq/utils.py
+2
-0
No files found.
examples/seq2seq/utils.py
View file @
656c27c3
...
...
@@ -4,6 +4,7 @@ import linecache
import
math
import
os
import
pickle
import
socket
from
logging
import
getLogger
from
pathlib
import
Path
from
typing
import
Callable
,
Dict
,
Iterable
,
List
,
Union
...
...
@@ -372,6 +373,7 @@ def get_git_info():
"repo_id"
:
str
(
repo
),
"repo_sha"
:
str
(
repo
.
head
.
object
.
hexsha
),
"repo_branch"
:
str
(
repo
.
active_branch
),
"hostname"
:
str
(
socket
.
gethostname
()),
}
return
repo_infos
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment