tqchen edited a comment on issue #4569: Some Windows and MSVC fixes
URL: https://github.com/apache/incubator-tvm/pull/4569#issuecomment-568542825
 
 
   Sorry I wasn't being clear, I agree that it is important to keep it, 
however, it might be better to implement it as follows(so condition is only 
executed once), I don't know if it is possible though
   
   ```python
   if test_encode_utf8():
       py_str = lambda x: x.decode("utf-8")
   else:
       py_str = lambda x: x.decode(oldencoding)
   
   ```

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


With regards,
Apache Git Services

Reply via email to