Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-centos7-tensorflow
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quang tru HUYNH
docker-centos7-tensorflow
Commits
ff6f93a6
Commit
ff6f93a6
authored
8 years ago
by
Quang tru HUYNH
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
build script running inside the container
parent
60e9f4d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runme.sh
+38
-0
38 additions, 0 deletions
runme.sh
with
38 additions
and
0 deletions
runme.sh
0 → 100644
+
38
−
0
View file @
ff6f93a6
#!/bin/sh
mkdir
-p
/tmp/tensorflow_pkg 2>> /dev/null
cd
/build/tensorflow-1.0.1
&&
\
./configure < /tmp/tf-c7.ans
&&
\
bazel build
--config
=
opt //tensorflow/tools/pip_package:build_pip_package
&&
\
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
# test tf (installation via pip will upgrade CentOS provided numpy,python-setuptools and EPEL python-wheel)
#
# Dependencies Resolved
#
# ==========================================================================================
# Package Arch Version Repository Size
# ==========================================================================================
# Removing:
# python-setuptools noarch 0.9.8-4.el7 @pasteur-base 1.9 M
# python-wheel noarch 0.24.0-2.el7 @epel 251 k
# Removing for dependencies:
# python-nose noarch 1.3.0-3.el7 @pasteur-base 1.1 M
# python2-pip noarch 8.1.2-5.el7 @epel 7.2 M
#
# Transaction Summary
# ==========================================================================================
# Remove 2 Packages (+2 Dependent packages)
yum remove numpy
pip
install
numpy
cd
/
&&
pip
install
--user
/tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_x86_64.whl
python
<<
EOF
# Creates a graph.
import tensorflow as tf
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
# Creates a session with log_device_placement set to True.
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
# Runs the op.
print sess.run(c)
EOF
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment