我应该使用 tf.add 还是 + 在 Tensorflow 中添加两个张量?

Should I use tf.add or + to add two tensors in Tensorflow?

我正在为 Python 3.

使用 Tensorflow 2.0

假设我有两个张量变量,xy,我想计算它们的逐元素总和 x + y。我应该只写 x + y 还是 tf.add(x, y)?如果它们不等价,我应该什么时候使用其中之一?

在我的理解中,它们是等价的,只是执​​行 __add__ 魔术功能。