2024-09-26 22:07:48 发布
网友
我试图使用Tensorflow1.14从https://github.com/artemmavrin/focal-loss/重新实现focal loss函数,但在使用示例进行测试时遇到以下错误-
ValueError:batch_dims=1必须小于秩(索引)=1
probs = tf.gather(probs, y_true, axis=-1, batch_dims=y_true_rank)
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐