gpt4 book ai didi

python - 反向传播会发生在标签中是什么意思?

转载 作者:太空狗 更新时间:2023-10-29 21:00:11 26 4
gpt4 key购买 nike

我今天收到一个警告,它说

softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version. Instructions for updating:

Future major versions of TensorFlow will allow gradients to flow into the labels input on backprop by default.

然后我按照它的建议检查了 tf.nn.softmax_cross_entropy_with_logits_v2,并在下面找到了一些东西

Backpropagation will happen into both logits and labels. To disallow backpropagation into labels, pass label tensors through a stop_gradients before feeding it to this function.

我不太明白反向传播会发生在标签中是什么意思,标签不是设置为常量吗?

最佳答案

关于python - 反向传播会发生在标签中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49312786/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com