AdamP-Tensorflow icon indicating copy to clipboard operation
AdamP-Tensorflow copied to clipboard

TPU Error: EuclideanNorm OpKernel not compatible

Open digantamisra98 opened this issue 4 years ago • 1 comments

Full error description raised on Tensorflow's TPU repo can be found here.

digantamisra98 avatar Jan 22 '21 09:01 digantamisra98

可以在此处找到 Tensorflow 的 TPU 存储库中提出的完整错误描述。

Perhaps, you can try replacing the "math_ops.euclidean_norm" with the following:

def euclidean_norm(x, axis, keepdims=False):
    return math_ops.reduce_sum(x ** 2, axis=axis, keepdims=keepdims) ** 0.5

cpuimage avatar Oct 15 '21 09:10 cpuimage