Remove designated initializers.
PiperOrigin-RevId: 286436468 Change-Id: I61c4337f54f3a2533a03de65371c2aa1b1a76e5b
This commit is contained in:
parent
2d5cbf1a2a
commit
4dfee0db43
@ -36,6 +36,8 @@ namespace {
|
||||
struct TridiagonalSystemShape {
|
||||
const int64 rank;
|
||||
const int64 num_equations;
|
||||
TridiagonalSystemShape(int64 rk, int64 num_eqs)
|
||||
: rank(rk), num_equations(num_eqs) {}
|
||||
};
|
||||
|
||||
Status CheckSecondToLastDimension(const Shape& op_shape, int64 rank,
|
||||
@ -109,9 +111,7 @@ StatusOr<TridiagonalSystemShape> CheckSystemAndReturnShape(XlaOp lower_diagonal,
|
||||
TF_RETURN_IF_ERROR(CheckSecondToLastDimension(upper_diagonal_shape, rank, 1,
|
||||
"upper diagonal"));
|
||||
|
||||
TridiagonalSystemShape result = {.rank = rank,
|
||||
.num_equations = num_equations};
|
||||
return result;
|
||||
return TridiagonalSystemShape(rank, num_equations);
|
||||
}
|
||||
|
||||
XlaOp Coefficient(XlaOp operand, int64 i) {
|
||||
|
Loading…
Reference in New Issue
Block a user