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
2872f967
Unverified
Commit
2872f967
authored
Jun 05, 2023
by
Brian Yu
Committed by
GitHub
Jun 05, 2023
Browse files
TensorBoard callback no longer adds hparams (#23999)
tensorboard callback no longer adds hparams
parent
44bd590a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
src/transformers/integrations.py
src/transformers/integrations.py
+0
-3
No files found.
src/transformers/integrations.py
View file @
2872f967
...
...
@@ -639,9 +639,6 @@ class TensorBoardCallback(TrainerCallback):
if
hasattr
(
model
,
"config"
)
and
model
.
config
is
not
None
:
model_config_json
=
model
.
config
.
to_json_string
()
self
.
tb_writer
.
add_text
(
"model_config"
,
model_config_json
)
# Version of TensorBoard coming from tensorboardX does not have this method.
if
hasattr
(
self
.
tb_writer
,
"add_hparams"
):
self
.
tb_writer
.
add_hparams
(
args
.
to_sanitized_dict
(),
metric_dict
=
{})
def
on_log
(
self
,
args
,
state
,
control
,
logs
=
None
,
**
kwargs
):
if
not
state
.
is_world_process_zero
:
...
...
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