From 81be829592cf07ae4692621181ec43c34726eff4 Mon Sep 17 00:00:00 2001 From: Allen Lavoie Date: Fri, 1 May 2020 10:47:05 -0700 Subject: [PATCH] Add a bfloat16 registration for MulNoNan PiperOrigin-RevId: 309434179 Change-Id: Ie9f17a9ef52171eede511710cd39d053a4ddc414 --- tensorflow/core/ops/math_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/ops/math_ops.cc b/tensorflow/core/ops/math_ops.cc index 6fe3447cfc8..5da2faacc6e 100644 --- a/tensorflow/core/ops/math_ops.cc +++ b/tensorflow/core/ops/math_ops.cc @@ -464,7 +464,7 @@ REGISTER_OP("MulNoNan") .Input("x: T") .Input("y: T") .Output("z: T") - .Attr("T: {half, float, double, complex64, complex128}") + .Attr("T: {bfloat16, half, float, double, complex64, complex128}") .SetShapeFn(shape_inference::BroadcastBinaryOpShapeFn); // Note: This op is not commutative w.r.t. to all its inputs.