mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-05 04:17:53 +00:00
[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:
parent
b7408f7389
commit
0f3a067d3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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]".
|
||||
|
|
|
|||
Loading…
Reference in a new issue