# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import tensorflow as tf
import numpy as np

node1 = tf.constant(3.0, tf.float32)
node2 = tf.constant(4.0)
print(node2, node2)

sess = tf.Session()

print(sess.run([node1, node2]))

node3 = tf.add(node1, node2)

print('node 3: ', node3, '\n', sess.run([node3]))

a = tf.placeholder(tf.float32)
b = tf.placeholder(tf.float32)
adder_node = tf.add(a,b)
sess.run(adder_node, {a:[3,2] ,b:[3,2]})

weight = tf.Variable(.3, tf.float32)
bias = tf.Variable(-.5, tf.float32)
input = tf.placeholder(tf.float32)

linear_model = input * weight + bias

init = tf.global_variables_initializer()



StarcoderdataJupyterScriptsDedupFiltered