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

Function PyBfloat16_Negative

tensorflow/compiler/xla/python/bfloat16.cc:212–215  ·  view source on GitHub ↗

Negates a PyBfloat16.

Source from the content-addressed store, hash-verified

210
211// Negates a PyBfloat16.
212PyObject* PyBfloat16_Negative(PyObject* self) {
213 bfloat16 x = PyBfloat16_Bfloat16(self);
214 return PyBfloat16_FromBfloat16(-x).release();
215}
216
217PyObject* PyBfloat16_Add(PyObject* a, PyObject* b) {
218 bfloat16 x, y;

Callers

nothing calls this directly

Calls 3

PyBfloat16_Bfloat16Function · 0.70
PyBfloat16_FromBfloat16Function · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected