Returns a boolean value indicating whether the current device is initilized with ParallelMode.PIPELINE and its world_size is greater than 1.
(self)
| 250 | return self.is_initialized(ParallelMode.TENSOR) and self.get_world_size(ParallelMode.TENSOR) > 1 |
| 251 | |
| 252 | def is_using_pp(self): |
| 253 | """Returns a boolean value indicating whether the current device is initilized with |
| 254 | ParallelMode.PIPELINE and its world_size is greater than 1. |
| 255 | """ |
| 256 | return self.is_initialized(ParallelMode.PIPELINE) and self.get_world_size(ParallelMode.PIPELINE) > 1 |
| 257 | |
| 258 | def is_using_sequence(self): |
| 259 | """Returns a boolean value indicating whether the current device is initilized with |
no test coverage detected