aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tf2xla/kernels/cholesky_op.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/tf2xla/kernels/cholesky_op.cc')
-rw-r--r--tensorflow/compiler/tf2xla/kernels/cholesky_op.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/tensorflow/compiler/tf2xla/kernels/cholesky_op.cc b/tensorflow/compiler/tf2xla/kernels/cholesky_op.cc
index fe6651793d..9fcbc86adc 100644
--- a/tensorflow/compiler/tf2xla/kernels/cholesky_op.cc
+++ b/tensorflow/compiler/tf2xla/kernels/cholesky_op.cc
@@ -24,12 +24,7 @@ class CholeskyOp : public XlaOpKernel {
public:
explicit CholeskyOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {}
void Compile(XlaOpKernelContext* ctx) override {
- auto result = Cholesky(ctx->builder(), ctx->Input(0));
- if (!result.ok()) {
- ctx->SetStatus(result.status());
- return;
- }
- ctx->SetOutput(0, result.ValueOrDie());
+ ctx->SetOutput(0, Cholesky(ctx->Input(0)));
}
};