Whether or not the current process should produce log.
(self)
| 1968 | |
| 1969 | @property |
| 1970 | def should_log(self): |
| 1971 | """ |
| 1972 | Whether or not the current process should produce log. |
| 1973 | """ |
| 1974 | if self.log_on_each_node: |
| 1975 | return self.local_process_index == 0 |
| 1976 | else: |
| 1977 | if is_sagemaker_mp_enabled(): |
| 1978 | return smp.rank() == 0 |
| 1979 | else: |
| 1980 | return self.process_index == 0 |
| 1981 | |
| 1982 | @property |
| 1983 | def should_save(self): |
nothing calls this directly
no test coverage detected