Lunderberg opened a new pull request, #17094:
URL: https://github.com/apache/tvm/pull/17094

   Prior to this commit, the `Array::Map` member function could only be applied 
to nullable object types.  This was due to the internal use of `U()` as the 
default value for initializing the output `ArrayNode`, where `U` is the return 
type of the mapping function.  This default constructor is only available for 
nullable types, and would result in a compile-time failure for non-nullable 
types.
   
   This commit replaces `U()` with `ObjectRef()` in `Array::Map`, removing this 
limitation.  Since all items in the output array are overwritten before 
returning to the calling scope, initializing the output array with 
`ObjectRef()` does not violate type safety.


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