diff options
author | Peter Hawkins <phawkins@google.com> | 2018-06-25 15:28:54 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-25 15:31:18 -0700 |
commit | 2912db376a740608a4216f8f6d3d29663ffc6f07 (patch) | |
tree | fd74eb54155305ff34a0c310cb1ada8e0df4b67c /tensorflow/core/lib | |
parent | 55b3cac99dba6c5b882ecca88263a93e60b2c0f9 (diff) |
[TF:XLA] Implement UnsortedSegment{Prod,Min,Max} operators.
PiperOrigin-RevId: 202030418
Diffstat (limited to 'tensorflow/core/lib')
-rw-r--r-- | tensorflow/core/lib/bfloat16/bfloat16.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tensorflow/core/lib/bfloat16/bfloat16.h b/tensorflow/core/lib/bfloat16/bfloat16.h index 2c0576ff10..1c130ba300 100644 --- a/tensorflow/core/lib/bfloat16/bfloat16.h +++ b/tensorflow/core/lib/bfloat16/bfloat16.h @@ -354,6 +354,18 @@ struct bfloat16 { return x; } + static bfloat16 highest() { + bfloat16 x; + x.value = 0x7F7F; // 0x1.FEp127 + return x; + } + + static bfloat16 lowest() { + bfloat16 x; + x.value = 0xFF7F; // -0x1.FEp127 + return x; + } + uint16_t value; // A value that represents "not a number". |