Fix unintialized var warning in bfloat16
authorDalmo Cirne <dalmo@clarifai.com>
Tue, 17 Apr 2018 14:51:00 +0000 (10:51 -0400)
committerDalmo Cirne <dalmo@clarifai.com>
Tue, 17 Apr 2018 14:51:00 +0000 (10:51 -0400)
commita2def2dbbe670d37f7bf2bf15a7eed6d7b3a1011
treeaa4248be606151a754c689c9a7e8e566084f9879
parent3128b43eb0bf37ac3c49cb22a6e1789d8ea346e8
Fix unintialized var warning in bfloat16

This contribution initializes result to 0, then inside the #if statement only one byte needs to be set, depending on the endian, the other will already be zero from the initialization. This also fixes the compilation warning.
tensorflow/core/lib/bfloat16/bfloat16.h