哪一个是对的
A
optimizer = tf.train.AdamOptimizer().minimize(loss = cost)
或
乙
optimizer = tf.train.AdamOptimizer.minimize(loss = cost)
仅供参考,TensorFlow页面的AdamOptimizer截图:
答案 0 :(得分:0)
A是对的
optimizer = tf.train.AdamOptimizer(learning_rate = 0.01).minimize(loss = cost)