Lunderberg commented on issue #17244: URL: https://github.com/apache/tvm/issues/17244#issuecomment-2271666054
Looks like the `alloc4` tensor returned by the `main` function has been allocated, but the values within it haven't been initialized. Similar to how reading uninitialized memory is undefined behavior in C++, I wouldn't expect the uninitialized memory to always contain the same values. While these uninitialized values generally shouldn't propagate out to an end-user, I don't think we could make a hard "all values are initialized" or "values are initialized before returning" rule without removing expressibility. For example, a function that produces `N` values, but within an allocation of size `N+M` to allow a later function to share the same allocation. -- 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]
