aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-30 21:12:31 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-30 21:16:21 -0700
commit348367a88e02a9e1750738b11a8e0784b2eb6b65 (patch)
tree29ee99e854185fc57cdaf1a0787f49dd0ac0b6f4 /tensorflow/core/lib
parente1f0d2ef46690157045d0509a4117de5ed0c6187 (diff)
Rollback of a rollback with fixes included. See below for details of the original change.
This CL fixes additional two CI tests that broke due to the changed bfloat16 behavior. ================================================== Automated rollback of commit 37b2b0eb613b6c3c66b96374851cfd95050346a0 PiperOrigin-RevId: 211031073
Diffstat (limited to 'tensorflow/core/lib')
-rw-r--r--tensorflow/core/lib/bfloat16/bfloat16.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/core/lib/bfloat16/bfloat16.h b/tensorflow/core/lib/bfloat16/bfloat16.h
index d6f3f26cd5..5c917e80c1 100644
--- a/tensorflow/core/lib/bfloat16/bfloat16.h
+++ b/tensorflow/core/lib/bfloat16/bfloat16.h
@@ -61,9 +61,7 @@ struct bfloat16 {
}
B16_DEVICE_FUNC explicit bfloat16(const float v) {
- // TODO(asabne) : change the below line to
- // value = round_to_bfloat16(v).value;
- value = truncate_to_bfloat16(v).value;
+ value = round_to_bfloat16(v).value;
}
B16_DEVICE_FUNC explicit bfloat16(const double val)