micricket opened a new pull request, #18115: URL: https://github.com/apache/tvm/pull/18115
### Description Currently, the `JSONAttrSetter::ParseDouble` function in `src/node/serialization.cc` correctly handles infinity (`"inf"`, `"-inf"`) but does not have a case for Not-a-Number (`"nan"`). This can cause errors when deserializing TVM objects that contain NaN float values. This change adds a condition to explicitly check for the string `"nan"` and correctly parse it into `std::numeric_limits<double>::quiet_NaN()`. This aligns the NaN handling with the existing logic for infinity values, making the serialization more robust. -- 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]
