是,对的。 训练步骤仅在执行时执行 opt_operation 执行。
opt_operation
你的最后一步:
loss,score = sess.run([mse,diceScore], feed_dict={x:batchX,y_:batchY})
仅评估 mse 和 diceScore 张量:没有进行优化。
mse
diceScore