From 431604ef890ea5075a2a8245ad47e1a4608bf18b Mon Sep 17 00:00:00 2001 From: "Tang, Cheng" Date: Wed, 6 Jan 2021 15:04:14 -0800 Subject: [PATCH] add bfloat16 to gathergrad type constrains (#6267) Co-authored-by: Cheng Tang --- orttraining/orttraining/core/graph/training_op_defs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orttraining/orttraining/core/graph/training_op_defs.cc b/orttraining/orttraining/core/graph/training_op_defs.cc index 39cab2b453..360eaafd33 100644 --- a/orttraining/orttraining/core/graph/training_op_defs.cc +++ b/orttraining/orttraining/core/graph/training_op_defs.cc @@ -447,7 +447,7 @@ void RegisterTrainingOpSchemas() { "Constrain input shape to integer tensors.") .TypeConstraint( "T", - {"tensor(float16)", "tensor(float)", "tensor(double)"}, + {"tensor(float16)", "tensor(float)", "tensor(double)", "tensor(bfloat16)"}, "Constrain input and output types to float tensors.") .TypeConstraint( "Tind",