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
b1faa20b
Unverified
Commit
b1faa20b
authored
Jan 26, 2018
by
Karmel Allison
Committed by
GitHub
Jan 26, 2018
Browse files
Use nightly TensorFlow docker image for tests (#3256)
* Using nightly TF docker * Explicitly pull image
parent
d0aa6081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
official/testing/docker_test.sh
official/testing/docker_test.sh
+7
-4
No files found.
official/testing/docker_test.sh
View file @
b1faa20b
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
#
#
# DO NOT MODIFY THIS FILE. Add tests to be executed in test_models.sh
# Usage: docker_test.sh [--docker-image <DOCKER_IMG_NAME>]
#
...
...
@@ -22,7 +22,7 @@
# --docker-image flag), the default latest tensorflow docker
# will be used.
#
# The script obeys the following required environment variables unless superceded by
# The script obeys the following required environment variables unless superceded by
# the docker image flag:
# PYTHON_VERSION: (PYTHON2 | PYTHON3)
...
...
@@ -35,9 +35,9 @@ EXIT=0
export
WORKSPACE
=
${
PWD
}
if
[
"
$PYTHON_VERSION
"
=
"PYTHON3"
]
;
then
DOCKER_IMG_NAME
=
"tensorflow/tensorflow:
1.4.0
-py3"
DOCKER_IMG_NAME
=
"tensorflow/tensorflow:
nightly
-py3"
else
DOCKER_IMG_NAME
=
"tensorflow/tensorflow:
1.4.0
"
DOCKER_IMG_NAME
=
"tensorflow/tensorflow:
nightly
"
if
[
"
$PYTHON_VERSION
"
!=
"PYTHON2"
]
;
then
echo
"WARNING: Python version was not specified. Using Python2 by default."
sleep
5
...
...
@@ -56,6 +56,9 @@ fi
# Specify which test is to be run
COMMAND
=
"./official/testing/test_models.sh"
# Check the recency of the desired image
${
DOCKER_BINARY
}
pull
${
DOCKER_IMG_NAME
}
# RUN
${
DOCKER_BINARY
}
run
\
-v
${
WORKSPACE
}
:/workspace
\
...
...
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