[FIX] reorder initializer (#18097)

### Description
Fix building error when with collective ops: error is thrown because
`device_mesh_axis` will be initialized after `cond`.
This commit is contained in:
mindest 2023-10-27 11:29:55 +08:00 committed by GitHub
parent b7408f7389
commit 0f3a067d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,7 @@ class AxisPartitionSpec {
// A normal ctor.
// TODO(wechi): Consider to hide it and revise the `public` members/functions
// exposed to the user.
AxisPartitionSpec(Condition cond_, int device_mesh_axis_) : device_mesh_axis(device_mesh_axis_), cond(cond_) {}
AxisPartitionSpec(Condition cond_, int device_mesh_axis_) : cond(cond_), device_mesh_axis(device_mesh_axis_) {}
// Helper to debug and generate error message; e.g.,
// "RS[0]".