(self, session_creator, session_init)
| 242 | |
| 243 | @HIDE_DOC |
| 244 | def initialize(self, session_creator, session_init): |
| 245 | if not isinstance(session_creator, NewSessionCreator) or \ |
| 246 | session_creator.user_provided_config: |
| 247 | raise ValueError( |
| 248 | "You are not allowed to set session_creator or session_config for distributed training! " |
| 249 | "To use a custom session config, pass it to tf.train.Server.") |
| 250 | super(DistributedTrainerBase, self).initialize( |
| 251 | get_distributed_session_creator(self.server), session_init) |
| 252 | |
| 253 | |
| 254 | # This is slow. deprecated in favor of horovod |
nothing calls this directly
no test coverage detected