gemini-code-assist[bot] commented on code in PR #18768:
URL: https://github.com/apache/tvm/pull/18768#discussion_r2796892112


##########
python/tvm/topi/math.py:
##########
@@ -799,6 +799,8 @@ def fast_tanh(x):
     y : tvm.te.Tensor
         The result.
     """
+    if x.dtype.startswith('int') or x.dtype.startswith('uint'):

Review Comment:
   ![medium](https://www.gstatic.com/codereviewagent/medium-priority.svg)
   
   This condition can be made more concise. The `startswith` method can accept 
a tuple of strings to check for multiple prefixes.
   
   ```suggestion
       if x.dtype.startswith(('int', 'uint')):
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to