Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc committed Apr 10, 2024
1 parent 3fedc7d commit 690e630
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions paddle/fluid/operators/svd_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,22 +584,6 @@ struct DeviceIndependenceTensorOperations {
return ret;
}

phi::DenseTensor TrilTriu(const phi::DenseTensor& x,
int diagonal,
bool lower) {
framework::AttributeMap attrs;
attrs["diagonal"] = diagonal;
attrs["lower"] = lower;
NameInTensorMap inputs({{"X", {&x}}});
int x_rank = x.dims().size();
PADDLE_ENFORCE_GE(
x_rank,
2,
platform::errors::InvalidArgument("Rank must be at least 2."));
std::vector<int> out_shape = common::vectorize<int>(x.dims());
return CreateOpRunAndReturnTensor("tril_triu", inputs, attrs, out_shape);
}

phi::DenseTensor TriangularSolve(const phi::DenseTensor& x,
const phi::DenseTensor& y,
bool upper,
Expand Down

0 comments on commit 690e630

Please sign in to comment.