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

Function RegisterNumpyBfloat16

tensorflow/python/lib/core/bfloat16.cc:717–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715} // namespace
716
717void RegisterNumpyBfloat16() {
718 if (npy_bfloat16_ >= 0) {
719 // Already initialized.
720 return;
721 }
722 if (!Initialize()) {
723 if (!PyErr_Occurred()) {
724 PyErr_SetString(PyExc_RuntimeError, "cannot load bfloat16 module.");
725 }
726 PyErr_Print();
727 }
728}
729
730PyObject* Bfloat16PyType() {
731 CHECK(PyBfloat16_Type.tp_base != nullptr);

Callers

nothing calls this directly

Calls 1

InitializeFunction · 0.70

Tested by

no test coverage detected