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

Function PyBfloat16_Negative

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

Negates a PyBfloat16.

Source from the content-addressed store, hash-verified

154
155// Negates a PyBfloat16.
156PyObject* PyBfloat16_Negative(PyObject* self) {
157 bfloat16 x = PyBfloat16_Bfloat16(self);
158 return PyBfloat16_FromBfloat16(-x).release();
159}
160
161// Binary arithmetic operators on PyBfloat16 values.
162#define BFLOAT16_BINOP(name, op) \

Callers

nothing calls this directly

Calls 3

PyBfloat16_Bfloat16Function · 0.70
PyBfloat16_FromBfloat16Function · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected