alter-xp commented on a change in pull request #6783:
URL: https://github.com/apache/incubator-tvm/pull/6783#discussion_r514067394



##########
File path: python/tvm/relay/frontend/tensorflow.py
##########
@@ -788,6 +788,14 @@ def _impl(inputs, attr, params, mod):
     return _impl
 
 
+def _expm1():
+    def _impl(inputs, attr, params, mod):
+        lh = get_relay_op("exp")(inputs[0])
+        return get_relay_op("subtract")(lh, tvm.relay.const(1, attr["T"].name))

Review comment:
       The operator` - `can be used, but cannot be written as` lh - 1`. I 
replaced `subtract` with `exp_out-1.`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to