这是tensorflow的python脚本,sess.run就是运行计算图,第一个参数应该是上一句获得的张量out,feed_dict是传给占位符的实际数据,我只能帮你到这了.jpg
x = tf.placeholder(tf.float32, name='x')
y = tf.placeholder(tf.float32, name='y')
pow = tf.placeholder(tf.float32, name='pow')
out = tf.power_difference(x,y,pow)
return sess.run(out, feed_dict = {x:input_x, y:input_y, pow:input_pow})
请登录后评论