diff options
Diffstat (limited to 'tensorflow/compiler/tf2xla/lib/util.cc')
-rw-r--r-- | tensorflow/compiler/tf2xla/lib/util.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/compiler/tf2xla/lib/util.cc b/tensorflow/compiler/tf2xla/lib/util.cc index 7ffe0aa6df..943248aedb 100644 --- a/tensorflow/compiler/tf2xla/lib/util.cc +++ b/tensorflow/compiler/tf2xla/lib/util.cc @@ -40,6 +40,9 @@ xla::ComputationDataHandle FloatLiteral(xla::ComputationBuilder* builder, case xla::F16: return builder->ConstantR0<xla::half>(static_cast<xla::half>(value)); break; + case xla::BF16: + return builder->ConstantR0<bfloat16>(static_cast<bfloat16>(value)); + break; case xla::F32: return builder->ConstantR0<float>(static_cast<float>(value)); break; |