wangxiang2713 opened a new pull request #8887:
URL: https://github.com/apache/tvm/pull/8887


   Function split_shape_func converts indices_or_sections to a list if 
indices_or_sections is actually indices (a int num):
   ```
   if isinstance(indices_or_sections, int):
       indices_or_sections = [indices_or_sections]
   ```
   and remains indices_or_sections a list if indices_or_sections is actually 
sections. 
   
   Then funtion _split_shape_func treats indices_or_sections as indices if 
len(indices_or_sections) == 1, treats indices_or_sections as sections otherwise:
   ```
   if len(indices_or_sections) == 1:
       ...
   else:
       ...
   ```
   
   However, if indices_or_sections is actually sections but only contains one 
element, it will be treated as indices in error.
   


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


Reply via email to