Revert "Revert "Specializing numeric_limits for float16 in any case""
This reverts commit a3d365b977.
This commit is contained in:
@@ -236,7 +236,14 @@ namespace std
|
||||
return hash<uint16_t>()(key.m_data);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#undef __has_keyword
|
||||
|
||||
|
||||
namespace std
|
||||
{
|
||||
template <>
|
||||
class numeric_limits<float16>
|
||||
{
|
||||
@@ -279,9 +286,5 @@ namespace std
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#undef __has_keyword
|
||||
|
||||
|
||||
typedef float16 fp16;
|
||||
typedef float16 half;
|
||||
|
||||
Reference in New Issue
Block a user