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
f0f42c82
Commit
f0f42c82
authored
Oct 19, 2019
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Oct 19, 2019
Browse files
Internal change
PiperOrigin-RevId: 275610155
parent
9ac54873
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
official/vision/image_classification/resnet_ctl_imagenet_test.py
...l/vision/image_classification/resnet_ctl_imagenet_test.py
+9
-1
No files found.
official/vision/image_classification/resnet_ctl_imagenet_test.py
View file @
f0f42c82
...
...
@@ -18,6 +18,8 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
tempfile
import
tensorflow.compat.v2
as
tf
from
tensorflow.python.eager
import
context
...
...
@@ -37,8 +39,14 @@ class CtlImagenetTest(tf.test.TestCase):
]
_tempdir
=
None
def
get_temp_dir
(
self
):
if
not
self
.
_tempdir
:
self
.
_tempdir
=
tempfile
.
mkdtemp
(
dir
=
super
(
CtlImagenetTest
,
self
).
get_temp_dir
())
return
self
.
_tempdir
@
classmethod
def
setUpClass
(
cls
):
# pylint: disable=invalid-name
def
setUpClass
(
cls
):
super
(
CtlImagenetTest
,
cls
).
setUpClass
()
common
.
define_keras_flags
()
...
...
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