You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/01/29 06:03:54 UTC

[GitHub] [tvm] masahi commented on pull request #7370: [Parser] Fix tokenizing inf

masahi commented on pull request #7370:
URL: https://github.com/apache/tvm/pull/7370#issuecomment-769597522


   > BTW just to confirm, this fix should correctly handle the case of `-np.inf` right? Might be worth adding a test case to be sure.
   
   @altanh Supporting -inf was a bit tricky, but it works now. This is the new output after `AnnotateSpans`.
   
   ```
   def @main(%x: Tensor[(3, 4), float32]) -> Tensor[(3, 4), float32] {
     clip(%x, a_min=-inff, a_max=inff) /* GeneratedSource */ /* ty=Tensor[(3, 4), float32] */
   }
   
   ```


----------------------------------------------------------------
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:
users@infra.apache.org