Skip to content

Commit 11c9246

Browse files
authored
Merge pull request #439 from onnx/gs/ut-fix
make ut happy for older tf versions
2 parents 97966a8 + fffb382 commit 11c9246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,14 +1912,14 @@ def test_ceil(self):
19121912
def test_softplus(self):
19131913
x_val = np.array([-1, 0, 1], dtype=np.float32)
19141914
x = tf.placeholder(tf.float32, [3], name=_TFINPUT)
1915-
x_ = tf.math.softplus(x)
1915+
x_ = tf.nn.softplus(x)
19161916
_ = tf.identity(x_, name=_TFOUTPUT)
19171917
self._run_test_case([_OUTPUT], {_INPUT: x_val})
19181918

19191919
def test_softsign(self):
19201920
x_val = np.array([-1, 0, 1], dtype=np.float32)
19211921
x = tf.placeholder(tf.float32, [3], name=_TFINPUT)
1922-
x_ = tf.math.softsign(x)
1922+
x_ = tf.nn.softsign(x)
19231923
_ = tf.identity(x_, name=_TFOUTPUT)
19241924
self._run_test_case([_OUTPUT], {_INPUT: x_val})
19251925

0 commit comments

Comments
 (0)