我希望计算TensorFlow中两个张量之间的自定义函数(在我的例子中是Hausdorff距离)。然而,关于tf.map函数的使用,我仍然有些遗漏。特别是,我希望计算批处理元素之间的自定义函数,这个函数是python函数。each element of the batch:我目前对Hausdorff距离的实现:imp
import tensorflow as tf def __init__(self, points, batch_size):
self.pointsreduce_mean (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in:353: calling reduce_logsumexp (from tensorflow.python.ops.math_