To measure the distance between two curves with Dynamic time wrapping (DTW) function in Tensorflow 2.0, I tried to convert the following DTW python code segment into Tensor