Difference between revisions of "TensorFlow/Note"

From ScientificComputing
Jump to: navigation, search
(Created page with "In the new software stack TensorFlow 2.0 is availabl for Python 3.7.4 compiled with GCC 6.3.0. For information regarding the new software stack, please refer the following N...")
 
Line 1: Line 1:
In the new software stack TensorFlow 2.0 is availabl for Python 3.7.4 compiled with GCC 6.3.0. For information regarding the new software stack, please refer the following [[New_SPACK_software_stack_on_Euler|wiki page]].
+
In the new software stack TensorFlow 2.0 is available for Python 3.7.4 compiled with GCC 6.3.0. For information regarding the new software stack, please refer the following [[New_SPACK_software_stack_on_Euler|wiki page]].
 +
 
 +
[sfux@eu-login-26 ~]$ env2lmod
 +
[sfux@eu-login-26 ~]$ module load gcc/6.3.0 python/3.7.4
 +
 +
The following have been reloaded with a version change:
 +
  1) gcc/4.8.5 => gcc/6.3.0
 +
 +
[sfux@eu-login-26 ~]$ python
 +
Python 3.7.4 (default, Oct 16 2019, 13:45:57)
 +
[GCC 6.3.0] on linux
 +
Type "help", "copyright", "credits" or "license" for more information.
 +
>>> import tensorflow
 +
>>> tensorflow.__version__
 +
'2.0.0'
 +
>>>
 +
 
 +
TensorFlow 2.x does no longer use sessions like TensorFlow 1.x. For a tutorial regarding TensorFlow 2.0 functionality, please refer to the [https://www.tensorflow.org/tutorials/quickstart/beginner TensorFlow] website.

Revision as of 14:22, 19 February 2020

In the new software stack TensorFlow 2.0 is available for Python 3.7.4 compiled with GCC 6.3.0. For information regarding the new software stack, please refer the following wiki page.

[sfux@eu-login-26 ~]$ env2lmod
[sfux@eu-login-26 ~]$ module load gcc/6.3.0 python/3.7.4

The following have been reloaded with a version change:
  1) gcc/4.8.5 => gcc/6.3.0

[sfux@eu-login-26 ~]$ python
Python 3.7.4 (default, Oct 16 2019, 13:45:57) 
[GCC 6.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
>>> tensorflow.__version__
'2.0.0'
>>>

TensorFlow 2.x does no longer use sessions like TensorFlow 1.x. For a tutorial regarding TensorFlow 2.0 functionality, please refer to the TensorFlow website.