Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix another Eigen missing validation #49577

Merged
merged 1 commit into from
May 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions tensorflow/core/kernels/banded_triangular_solve_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ class BandedTriangularSolveOpCpu : public OpKernel {
OP_REQUIRES(
ctx, in1.dims() >= 2,
errors::InvalidArgument("In[1] ndims must be >= 2: ", in1.dims()));

OP_REQUIRES(ctx, in0.NumElements() > 0,
errors::InvalidArgument("In[0] must not be an empty tensor: ",
in0.DebugString()));

OP_REQUIRES(ctx, in1.NumElements() > 0,
errors::InvalidArgument("In[1] must not be an empty tensor: ",
in1.DebugString()));
}
bool lower_;
bool adjoint_;
Expand Down