File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,12 @@ HostIrEvaluator::HostIrEvaluator(
4646 communicator_ (communicator),
4747 params_(params),
4848 expr_evaluator_(),
49- my_local_device_index_(communicator_ ? communicator_->local_rank () : 0),
49+ my_local_device_index_(
50+ communicator_ == nullptr ? 0 : communicator_->local_rank ()),
5051 ipc_handle_cache_(expr_evaluator_),
5152 multicast_handle_cache_() {
5253 const DeviceIdxType device_index =
53- (communicator_ != nullptr && communicator_->is_available ())
54- ? communicator_->deviceId ()
55- : 0 ;
54+ communicator_ == nullptr ? 0 : communicator_->deviceId ();
5655 if (isDebugDumpEnabled (DebugDumpOption::HostIr) && device_index == 0 ) {
5756 container_->print (debug ());
5857 }
Original file line number Diff line number Diff line change 1919#include " multidevice/c10d_mock.h"
2020#endif
2121
22- #include " exceptions.h"
2322#include " multidevice/multidevice.h"
2423#include " visibility.h"
2524
You can’t perform that action at this time.
0 commit comments