Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
ce98482b
Commit
ce98482b
authored
3 years ago
by
Taras Lazariv
Committed by
Elias Werner
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add distributed subsection to tensorflow.md
parent
d85df6f7
No related branches found
No related tags found
6 merge requests
!333
Draft: update NGC containers
,
!322
Merge preview into main
,
!319
Merge preview into main
,
!279
Draft: Machine Learning restructuring
,
!268
Update ML branch with the content from DA
,
!258
Data Analytics restructuring
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/software/tensorflow.md
+13
-3
13 additions, 3 deletions
doc.zih.tu-dresden.de/docs/software/tensorflow.md
with
13 additions
and
3 deletions
doc.zih.tu-dresden.de/docs/software/tensorflow.md
+
13
−
3
View file @
ce98482b
...
@@ -39,13 +39,15 @@ marie@ml$ module load modenv/ml #example output: The following have been relo
...
@@ -39,13 +39,15 @@ marie@ml$ module load modenv/ml #example output: The following have been relo
This example shows how to install and start working with TensorFlow (with using modules system)
This example shows how to install and start working with TensorFlow (with using modules system)
```
console
```
console
marie@ml$
module load TensorFlow
#load TensorFlow module. example output: Module TensorFlow/1.10.0-PythonAnaconda-3.6 and 1 dependency loaded.
marie@ml$
module load TensorFlow
Module TensorFlow/1.10.0-PythonAnaconda-3.6 and 1 dependency loaded.
```
```
Now we check that we can access TensorFlow. One example is tensorflow-test:
Now we check that we can access TensorFlow. One example is tensorflow-test:
```
console
```
console
marie@ml$
tensorflow-test
#example output: Basic test of tensorflow - A Hello World!!!...
marie@ml$
tensorflow-test
Basic test of tensorflow - A Hello World!!!...
```
```
Following example shows how to create python virtual environment and import TensorFlow.
Following example shows how to create python virtual environment and import TensorFlow.
...
@@ -53,7 +55,9 @@ Following example shows how to create python virtual environment and import Tens
...
@@ -53,7 +55,9 @@ Following example shows how to create python virtual environment and import Tens
```
console
```
console
marie@ml$
mkdir
python-environments
#create folder
marie@ml$
mkdir
python-environments
#create folder
marie@ml$
which python
#check which python are you using
marie@ml$
which python
#check which python are you using
/sw/installed/Python/3.7.4-GCCcore-8.3.0/bin/python
marie@ml$
virtualenv
--system-site-packages
python-environments/env
#create virtual environment "env" which inheriting with global site packages
marie@ml$
virtualenv
--system-site-packages
python-environments/env
#create virtual environment "env" which inheriting with global site packages
[...]
marie@ml$
source
python-environments/env/bin/activate
#activate virtual environment "env". Example output: (env) bash-4.2$
marie@ml$
source
python-environments/env/bin/activate
#activate virtual environment "env". Example output: (env) bash-4.2$
marie@ml$
python
-c
"import tensorflow as tf; print(tf.__version__)"
marie@ml$
python
-c
"import tensorflow as tf; print(tf.__version__)"
```
```
...
@@ -79,7 +83,8 @@ marie@ml$ singularity shell --nv /scratch/singularity/powerai-1.5.3-all-ubuntu16
...
@@ -79,7 +83,8 @@ marie@ml$ singularity shell --nv /scratch/singularity/powerai-1.5.3-all-ubuntu16
marie@ml$
export
PATH
=
/opt/anaconda3/bin:
$PATH
marie@ml$
export
PATH
=
/opt/anaconda3/bin:
$PATH
marie@ml$
source
activate /opt/anaconda3
#activate conda environment
marie@ml$
source
activate /opt/anaconda3
#activate conda environment
marie@ml$
.
/opt/DL/tensorflow/bin/tensorflow-activate
marie@ml$
.
/opt/DL/tensorflow/bin/tensorflow-activate
marie@ml$
tensorflow-test
#example output: Basic test of tensorflow - A Hello World!!!...
marie@ml$
tensorflow-test
Basic test of tensorflow - A Hello World!!!...
```
```
## TensorFlow with Python or R
## TensorFlow with Python or R
...
@@ -87,6 +92,11 @@ marie@ml$ tensorflow-test #example output: Basic test of tensorflow - A Hello
...
@@ -87,6 +92,11 @@ marie@ml$ tensorflow-test #example output: Basic test of tensorflow - A Hello
For further information on TensorFlow in combination with Python see
For further information on TensorFlow in combination with Python see
[
here
](
data_analytics_with_python.md
)
, for R see
[
here
](
data_analytics_with_r.md
)
.
[
here
](
data_analytics_with_python.md
)
, for R see
[
here
](
data_analytics_with_r.md
)
.
## Distributed TensorFlow
For details on how to run TensorFlow with multiple GPUs and/or multiple nodes, see
[
distributed training
](
distributed_training.md
)
.
## Compatibility TF2 and TF1
## Compatibility TF2 and TF1
TensorFlow 2.0 includes many API changes, such as reordering arguments, renaming symbols, and
TensorFlow 2.0 includes many API changes, such as reordering arguments, renaming symbols, and
...
...
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