【发布时间】:2021-09-13 15:56:41
【问题描述】:
我想在 tensorflow 中导入 ReductionV2 方法,但找不到源。我正在寻找这种方法:
losses_utils.ReductionV2.AUTO
但是当我尝试导入它时,我得到:
ModuleNotFoundError: No module named 'tensorflow.keras.utils.losses_utils'
【问题讨论】:
标签: tensorflow import reduction
我想在 tensorflow 中导入 ReductionV2 方法,但找不到源。我正在寻找这种方法:
losses_utils.ReductionV2.AUTO
但是当我尝试导入它时,我得到:
ModuleNotFoundError: No module named 'tensorflow.keras.utils.losses_utils'
【问题讨论】:
标签: tensorflow import reduction
使用tf.keras.losses.Reduction,默认值为AUTO
【讨论】: