未验证 提交 962a628d 编写于 作者: D Double_V 提交者: GitHub

remove tmp variable

上级 616ad6a1
......@@ -231,9 +231,7 @@ class GridGenerator(nn.Layer):
""" Return inv_delta_C which is needed to calculate T """
F = self.F
hat_eye = paddle.eye(F, dtype='float64') # F x F
tmp1 = C.reshape([1, F, 2])
tmp2 = C.reshape([F, 1, 2])
hat_C = paddle.norm(tmp1 - tmp2, axis=2) + hat_eye
hat_C = paddle.norm(C.reshape([1, F, 2]) - C.reshape([F, 1, 2]), axis=2) + hat_eye
hat_C = (hat_C**2) * paddle.log(hat_C)
delta_C = paddle.concat( # F+3 x F+3
[
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册