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
We will use tensorflow-gpu.img container image.
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 #$ -q tesla.q ## we request tesla.q #$ -l h_vmem=48G ## tensorflow GPU requires lot of memory ## load singularity module load tools/singularity ## run TF with singularity singularity exec --nv $SING_SPOOL/tensorflow-gpu.img python myTF_program.py
Tensorflow GPU requires a lot of memory, you must ask h_vmem=48G as a minimum
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 #$ -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