Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tf-magenta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zoe-apps
tf-magenta
Commits
9b562556
Commit
9b562556
authored
Sep 12, 2017
by
Daniele Venzano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update with compatibility for
parent
6c258299
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
11 deletions
+48
-11
README-custom.md
README-custom.md
+7
-0
README-goog.md
README-goog.md
+6
-0
README.md
README.md
+0
-3
docker/tensorflow/Dockerfile
docker/tensorflow/Dockerfile
+1
-5
gen_json_google.py
gen_json_google.py
+1
-1
gen_json_standalone.py
gen_json_standalone.py
+1
-1
manifest.json
manifest.json
+28
-0
validate_all.sh
validate_all.sh
+4
-1
No files found.
README-custom.md
0 → 100644
View file @
9b562556
# Batch TensorFlow
Stand-alone batch TensorFlow version 1.3 for Python 3, recompiled with instructions for modern x86_64 Intel CPUs.
This ZApp expects as parameter the command to run, relative to the workspace. For example, if you want to run
the script
`~/algo/run.py`
, you can write
`python3 ./algo/run.py`
.
README-goog.md
0 → 100644
View file @
9b562556
# Tensorflow ZApp
Unmodified
[
Google TensorFlow
](
https://www.tensorflow.org/
)
as generated by Google. This ZApp contains a Jupyter Notebook.
The image used contains TensorFlow 1.3 for Python 3.
README.md
deleted
100644 → 0
View file @
6c258299
# Tensorflow ZApp
Google Tensorflow image with notebook or stand-alone batch tensorflow based on latest GIT.
docker/tensorflow/Dockerfile
View file @
9b562556
...
...
@@ -43,10 +43,6 @@ RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
RUN
apt-get update
&&
sudo
apt-get
install
-y
--force-yes
--no-install-recommends
bazel patch
RUN
apt-get upgrade
-y
--force-yes
--no-install-recommends
bazel
# CLONE FROM GIT
#RUN git clone https://github.com/tensorflow/tensorflow
#WORKDIR /tensorflow
##################################################
# Make sure important packages are installed
##################################################
...
...
@@ -76,7 +72,7 @@ RUN mkdir /bazel && \
RUN
git clone https://github.com/tensorflow/tensorflow.git
&&
\
cd
tensorflow
# git checkout r1.2
git checkout r1.3
WORKDIR
/tensorflow
# TODO(craigcitro): Don't install the pip package, since it makes it
...
...
gen_json_google.py
View file @
9b562556
...
...
@@ -35,7 +35,7 @@ REGISTRY = os.getenv("DOCKER_REGISTRY", default="docker-engine:5000")
REPOSITORY
=
os
.
getenv
(
"REPOSITORY"
,
default
=
"zapps"
)
VERSION
=
os
.
getenv
(
"VERSION"
,
default
=
"latest"
)
GOOG_IMAGE
=
"gcr.io/tensorflow/tensorflow"
GOOG_IMAGE
=
"gcr.io/tensorflow/tensorflow
:1.3.0-py3
"
def
goog_tensorflow_service
(
memory_limit
,
core_limit
):
"""
...
...
gen_json_standalone.py
View file @
9b562556
...
...
@@ -43,7 +43,7 @@ def custom_tensorflow_service(memory_limit, core_limit):
:rtype: dict
"""
service
=
{
'name'
:
"
jupyter
"
,
'name'
:
"
tf
"
,
'image'
:
CUSTOM_IMAGE
,
'monitor'
:
True
,
'resources'
:
{
...
...
manifest.json
0 → 100644
View file @
9b562556
{
"version"
:
1
,
"zapps"
:
[
{
"category"
:
"Jupyter notebooks"
,
"name"
:
"TensorFlow notebook"
,
"description"
:
"goog_tensorflow.json"
,
"readable_descr"
:
"README-goog.md"
,
"parameters"
:
[]
},
{
"category"
:
"Non-interactive"
,
"name"
:
"Optimized TensorFlow"
,
"description"
:
"custom_tensorflow.json"
,
"readable_descr"
:
"README-custom.md"
,
"parameters"
:
[
{
"kind"
:
"command"
,
"name"
:
"tf"
,
"readable_name"
:
"Command"
,
"description"
:
"The Python script to run, relative to the workspace directory"
,
"type"
:
"string"
,
"default"
:
"./my-tf-app/main.py"
}
]
}
]
}
validate_all.sh
View file @
9b562556
...
...
@@ -2,12 +2,15 @@
set
-e
VALIDATION_URL
=
${
VALIDATION_URL
:-
http
://localhost:5001/api/0.7/zapp_validat
ion
}
VALIDATION_URL
=
${
VALIDATION_URL
:-
http
://localhost:5001/api/0.7/zapp_validat
e
}
tempfile
=
`
mktemp
`
trap
"{ rm -f
$tempfile
; }"
EXIT
for
json
in
*
.json
;
do
if
[
$json
=
"manifest.json"
]
;
then
continue
fi
echo
'{"application":'
>
$tempfile
cat
$json
>>
$tempfile
echo
'}'
>>
$tempfile
...
...
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