Merge pull request #50035 from tensorflow/mm-cpp-on-r2.3

Ensure validation sticks in banded_triangular_solve_op
This commit is contained in:
Mihai Maruseac 2021-06-03 08:12:28 -07:00 committed by GitHub
commit c43c16744d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,7 @@ class BandedTriangularSolveOpCpu : public OpKernel {
const Tensor& in1 = ctx->input(1);
ValidateInputTensors(ctx, in0, in1);
if (!ctx->status().ok()) return;
MatMulBCast bcast(in0.shape().dim_sizes(), in1.shape().dim_sizes());
OP_REQUIRES(