MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / half>

Method half>

tensorflow/python/lib/core/py_seq_tensor.cc:389–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387// provides `Eigen::half_impl::isinf` instead.
388template <>
389inline bool CheckForOverflow<Eigen::half>(double as_double, Eigen::half* out) {
390 return (sizeof(Eigen::half) < sizeof(double) &&
391 Eigen::half_impl::isinf(*out) && std::isfinite(as_double));
392}
393
394template <class T>
395const char* ConvertOneFloat(PyObject* v, T* out) {

Callers

nothing calls this directly

Calls 2

isinfClass · 0.85
isfiniteClass · 0.85

Tested by

no test coverage detected