<jupyter_start><jupyter_text>First Graphs<jupyter_code>import numpy as np
import tensorflow as tf
x1 = tf.placeholder(tf.float32)
x2 = tf.placeholder(tf.float32)<jupyter_output><empty_output><jupyter_text>simple arithmetic<jupyter_code>sum_op = tf.add(x1, x2)
prod_op = tf.multiply(x1, x2)
with tf.Session() as session:
    sum_result = session.run(sum_op, feed_dict={x1: 2.0, x2: 0.5})
    prod_result = session.run(prod_op, feed_dict={x1: 2.0, x2: 0.5})
sum_result
prod_result<jupyter_output><empty_output><jupyter_text>Simple array arithmetic<jupyter_code>with tf.Session() as session:
    sum_result = session.run(sum_op, feed_dict={x1: [2.0, 2.0, 2.0], x2: [0.5, 1.0, 2.0]})
    prod_result = session.run(prod_op, feed_dict={x1: [2.0, 4.0], x2: 0.5})
sum_result
prod_result<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15099009900990099, 'fraction_numerical': 0.054455445544554455, 'mean_word_length': 6.3545454545454545, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '393952', 'license': 'Apache-2.0', 'n_tokens_mistral': 365, 'n_tokens_neox': 347, 'n_words': 61, 'path': 'Deep Learning/Tutorials/First_tf_graphs_demo.ipynb', 'repo_name': 'surajch77/ML-Examples', 'size': '808'}