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
ModelZoo
ResNet50_tensorflow
Commits
11eeb9cb
Commit
11eeb9cb
authored
Jun 12, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jun 12, 2020
Browse files
Internal change
PiperOrigin-RevId: 316198562
parent
49181822
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
official/r1/utils/logs/logger.py
official/r1/utils/logs/logger.py
+0
-23
No files found.
official/r1/utils/logs/logger.py
View file @
11eeb9cb
...
...
@@ -25,7 +25,6 @@ from __future__ import print_function
import
contextlib
import
datetime
import
json
import
multiprocessing
import
numbers
import
os
import
threading
...
...
@@ -220,7 +219,6 @@ def _gather_run_info(model_name, dataset_name, run_params, test_id):
_collect_tensorflow_info
(
run_info
)
_collect_tensorflow_environment_variables
(
run_info
)
_collect_run_params
(
run_info
,
run_params
)
_collect_cpu_info
(
run_info
)
_collect_memory_info
(
run_info
)
_collect_test_environment
(
run_info
)
return
run_info
...
...
@@ -272,27 +270,6 @@ def _collect_tensorflow_environment_variables(run_info):
for
k
,
v
in
sorted
(
os
.
environ
.
items
())
if
k
.
startswith
(
"TF_"
)]
# The following code is mirrored from tensorflow/tools/test/system_info_lib
# which is not exposed for import.
def
_collect_cpu_info
(
run_info
):
"""Collect the CPU information for the local environment."""
cpu_info
=
{}
cpu_info
[
"num_cores"
]
=
multiprocessing
.
cpu_count
()
try
:
# Note: cpuinfo is not installed in the TensorFlow OSS tree.
# It is installable via pip.
import
cpuinfo
# pylint: disable=g-import-not-at-top
info
=
cpuinfo
.
get_cpu_info
()
cpu_info
[
"mhz_per_cpu"
]
=
info
[
"hz_advertised_raw"
][
0
]
/
1.0e6
run_info
[
"machine_config"
][
"cpu_info"
]
=
cpu_info
except
ImportError
:
logging
.
warn
(
"'cpuinfo' not imported. CPU info will not be logged."
)
def
_collect_memory_info
(
run_info
):
try
:
# Note: psutil is not installed in the TensorFlow OSS tree.
...
...
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