Slide 39
Slide 39 text
import tensorflow as tf
matrix_size = 224 * 224
category_size = 150
with tf.name_scope("data"):
d1 = tf.placeholder(tf.float32, [None, matrix_size], name="image_data")
d2 = tf.placeholder(tf.float32, [None, category_size], name="category_data")
with tf.name_scope("model"):
weights = tf.Variable(tf.zeros([matrix_size, category_size]), name="weights")
bias = tf.Variable(tf.zeros([category_size]), name="bias")