start up virtual environment first

image.png

cd to C drive, download pip install tensorflow

or

 tensorflow_intel-2.13.0-cp38-cp38-win_amd64.whl

to run in internal download and save as

image.png

run on colab:

import tensorflow as tf
w = tf.Variable([3.],dtype= tf.float32)
x = tf.Variable([2.],dtype= tf.float32)
b = tf.Variable([5.],dtype= tf.float32)
print(w*x+b)
o = tf.sigmoid(w*x+b)
print(o)

to check tensorflow version:

image.png

print(tf.__version__)

change to GPU:

image.png

test GPU availibility

print('GPU',tf.test.is_gpu_available())

image.png

image.png

CD to C drive, create a folder then save your code as .py

cd w2