gpt4 book ai didi

python - tf.boolean_mask 不接受轴参数

转载 作者:太空宇宙 更新时间:2023-11-03 21:12:30 24 4
gpt4 key购买 nike

这是我的代码:

 44     scores = tf.boolean_mask(box_class_scores,filtering_mask,axis=-1)
45 boxes = tf.boolean_mask(boxes,filtering_mask,axis=-1)
46 classes = tf.boolean_mask(box_classes,filtering_mask,axis=-1)

错误,我得到:

TypeError: boolean_mask() got an unexpected keyword argument 'axis'

tf.boolean_mask()不接受轴参数,但它是一个有效的参数,如文档中所示:https://www.tensorflow.org/api_docs/python/tf/boolean_mask

enter image description here

最佳答案

如果您从函数中删除 axis 参数,它将起作用。您收到的错误将得到解决。

关于python - tf.boolean_mask 不接受轴参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54966581/

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