i am making agent for cart pole using Q-network i am watching online lecture but he is using tensorflow v1 (it has record before tf_v2)
he is using placeholder api and placeholder is removed in tensorflow-v2
i want a find alternative solution for tensorflow-v2
this is my code
x = tf.placeholder([1,input_size],dtype=tf.float32)
w = tf.Variable(tf.random.uniform([input_size,output_size],0,0.01))
qpred = tf.matmul(x,w)