Commit 2c4143a
committed
Only call batch_iterator_func.__exit__() if defined in conf.yaml
Another bug introduced in PPPLDeepLearning#39 merging "jdev" branch.
Originally, MPIModel class member "batch_iterator_func" was
unconditionally set to ProcessGenerator(self.batch_iterator()).
Now, may only be set to self.batch_iterator() if
conf['training']['use_process_generator'] == False1 parent 5dd58c8 commit 2c4143a
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
| |||
918 | 921 | | |
919 | 922 | | |
920 | 923 | | |
| 924 | + | |
921 | 925 | | |
922 | 926 | | |
923 | 927 | | |
| |||
0 commit comments