Jump to content

TensorFlow: Difference between revisions

Line 14: Line 14:


===Install TF1===
===Install TF1===
Note: You will only need TF1 if working with a TF1 repo. If adapting your old code, you can install TF2 and use:
Note: You will only need TF1 if working with a TF1 repo.
If migrating your old code, you can install TF2 and use:
* <code>import tensorflow.compat.v1 as tf</code>
* <code>import tensorflow.compat.v1 as tf</code>
* See [https://www.tensorflow.org/guide/migrate TF Guide Migrate]


<pre>
<pre>