mbrookhart commented on a change in pull request #6272:
URL: https://github.com/apache/incubator-tvm/pull/6272#discussion_r470747397
##########
File path: src/relay/transforms/pattern_util.h
##########
@@ -374,7 +374,7 @@ inline bool IsEqualScalar(const Expr& a, const Expr& b) {
* \param i element index
* \return Converted scalar value.
*/
-static inline double ToScalar(const runtime::NDArray& array, size_t i = 0) {
+static inline long double ToScalar(const runtime::NDArray& array, size_t i =
0) {
Review comment:
long double has 63 bits of mantissa and 1 bit of sign on x86, just like
int64. On PowerPC and ARM, it's a 128bit floating point with 106 bits of
mantissa.
----------------------------------------------------------------
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]