Simple-Multiplication
title: "Simple Multiplication"
author: "Raja CSP Raman"
date: 2019-05-09
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
a = tf.random_normal([2, 2])
b = tf.random_normal([2, 2])
<tf.Tensor 'random_normal_3:0' shape=(2 …
Read More
Simple-Session
title: "Simple Session"
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
hello = tf.constant('Hello, TensorFlow!')
<tf.Tensor 'Const:0' shape=() dtype=string>
sess = tf.Session()
sess.run(hello)
Read More
Simple-Tensorflow
title: "Simple Tensorflow"
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
<tf.Tensor 'Const:0' shape=() dtype=float32>
<tf.Tensor 'Const_1:0' shape=() dtype=float32 …
Read More
Stack
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
a = tf.constant([1, 2])
b = tf.constant([3, 4])
c = tf.constant([10, 20])
Read More
Stack-Extra
title: "Stack Extra"
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
a = tf.constant([
[1, 2],
[3, 4]
])
<tf.Tensor 'Const_4:0' shape=(2, 2) dtype=int32 …
Read More
Template-Copy1
title: "Template"
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
Score: 0
Read More
Updating Variable State
title: "Updating Variable State"
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
a = tf.Variable(0, name = 'counter')
b = tf.add(a, tf.constant(2))
# update a with …
Read More
Variables-And-Session
title: "Variables and Session"
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
a = tf.ones((2, 2))
b = tf.Variable(tf.zeros((2, 2)), name = 'weights')
with tf …
Read More
Variables-With-Random-Values
title: "Variables With Random Values"
author: "Raja CSP Raman"
date: 2019-05-06
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
a = tf.random_uniform((4, 4), 0, 1)
<tf.Tensor 'random_uniform_2:0' shape=(4, 4 …
Read More
Variables-With-Type
title: "Variables with Type"
author: "Raja CSP Raman"
date: 2019-05-06
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
w = tf.Variable([.2], dtype=tf.float32)
b = tf.Variable([0.11], dtype=tf.float32)
Read More