Ceci est une ancienne révision du document !


TensorFlow

TensorFlow™ is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them.

How to use Tensorflow

TensorFlow 1.x is available within Singularity container.

Here is an example of SGE script that use tensorFlow GPU version withing singularity:

#!/bin/bash 
 
#$ -o $JOB_NAME.o$JOB_ID
 
#$ -N job_tensorflow
 
i#$ -q tesla.q   ## we request tesla.q             
 
#$ -l h_vmem=4G   ## we request 4G
 
 
## load singularity
 
module load tools/singularity
 
## run TF with singularity
 
singularity exec $SING_SPOOL/tensorflow-gpu.img python myTF_program.py

CPU version of TensorFlow is less powerful than the GPU version.

We will use Singularity container: ubuntu-16.img

#!/bin/bash 
 
#$ -o $JOB_NAME.o$JOB_ID
 
#$ -N job_tensorflowCPU
 
i#$ -q all.q   ## we request all.q             
 
#$ -l h_vmem=4G   ## we request 4G
 
 
## load singularity
 
module load tools/singularity
 
## run TF within singularity
 
singularity exec $SING_SPOOL/ubuntu-16.img python myTF_program.py
  • tensorflow.1492519392.txt.gz
  • Dernière modification : 2017/04/18 12:43
  • de admin