oneflow
oneflow copied to clipboard
Add pairwise_distance api
背景:https://github.com/Oneflow-Inc/oneflow/issues/8841
问题概述:缺少 pairwise_distance 算子
实现:Functor 层调用 norm(x1 - x2, p=p)
torch实现:https://github.com/pytorch/pytorch/blob/6a09847c42bf7d33ba0aea5b083eebd846661ce1/aten/src/ATen/native/Distance.cpp#L16-L23