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
8c8779a3
Commit
8c8779a3
authored
Jul 18, 2019
by
guptapriya
Browse files
Disable ncf tests for 1.x
parent
41d071ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
official/recommendation/ncf_test.py
official/recommendation/ncf_test.py
+4
-0
No files found.
official/recommendation/ncf_test.py
View file @
8c8779a3
...
@@ -213,12 +213,14 @@ class NcfTest(tf.test.TestCase):
...
@@ -213,12 +213,14 @@ class NcfTest(tf.test.TestCase):
[
'-distribution_strategy'
,
'off'
])
[
'-distribution_strategy'
,
'off'
])
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
unittest
.
skipUnless
(
keras_utils
.
is_v2_0
(),
'TF 2.0 only test.'
)
def
test_end_to_end_keras_dist_strat
(
self
):
def
test_end_to_end_keras_dist_strat
(
self
):
integration
.
run_synthetic
(
integration
.
run_synthetic
(
ncf_keras_main
.
main
,
tmp_root
=
self
.
get_temp_dir
(),
max_train
=
None
,
ncf_keras_main
.
main
,
tmp_root
=
self
.
get_temp_dir
(),
max_train
=
None
,
extra_flags
=
self
.
_BASE_END_TO_END_FLAGS
+
[
'-num_gpus'
,
'0'
])
extra_flags
=
self
.
_BASE_END_TO_END_FLAGS
+
[
'-num_gpus'
,
'0'
])
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
unittest
.
skipUnless
(
keras_utils
.
is_v2_0
(),
'TF 2.0 only test.'
)
def
test_end_to_end_keras_dist_strat_ctl
(
self
):
def
test_end_to_end_keras_dist_strat_ctl
(
self
):
flags
=
(
self
.
_BASE_END_TO_END_FLAGS
+
flags
=
(
self
.
_BASE_END_TO_END_FLAGS
+
[
'-num_gpus'
,
'0'
]
+
[
'-num_gpus'
,
'0'
]
+
...
@@ -228,6 +230,7 @@ class NcfTest(tf.test.TestCase):
...
@@ -228,6 +230,7 @@ class NcfTest(tf.test.TestCase):
extra_flags
=
flags
)
extra_flags
=
flags
)
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
unittest
.
skipUnless
(
keras_utils
.
is_v2_0
(),
'TF 2.0 only test.'
)
def
test_end_to_end_keras_1_gpu_dist_strat
(
self
):
def
test_end_to_end_keras_1_gpu_dist_strat
(
self
):
if
context
.
num_gpus
()
<
1
:
if
context
.
num_gpus
()
<
1
:
self
.
skipTest
(
self
.
skipTest
(
...
@@ -239,6 +242,7 @@ class NcfTest(tf.test.TestCase):
...
@@ -239,6 +242,7 @@ class NcfTest(tf.test.TestCase):
extra_flags
=
self
.
_BASE_END_TO_END_FLAGS
+
[
'-num_gpus'
,
'1'
])
extra_flags
=
self
.
_BASE_END_TO_END_FLAGS
+
[
'-num_gpus'
,
'1'
])
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
mock
.
patch
.
object
(
rconst
,
"SYNTHETIC_BATCHES_PER_EPOCH"
,
100
)
@
unittest
.
skipUnless
(
keras_utils
.
is_v2_0
(),
'TF 2.0 only test.'
)
def
test_end_to_end_keras_2_gpu
(
self
):
def
test_end_to_end_keras_2_gpu
(
self
):
if
context
.
num_gpus
()
<
2
:
if
context
.
num_gpus
()
<
2
:
self
.
skipTest
(
self
.
skipTest
(
...
...
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