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.
GPU version
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
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