This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Commit c245c8a
Fix an issue that batch predict in mltoolbox fails. (#695)
* Fix an issue that batch predict in mltoolbox fails.
In local prediction run, it is a dataflow local run job. One DataFlow operator, the TF graph runner, calls TF's "bundle_shim.load_session_bundle_or_saved_model_bundle_from_path" API in its "start_bundle" function. This API not only creates a session, but also populate default TF graph with operators loaded from the saved model.
If this operator is called multiple times, multiple operators (even with the same name) will be added to the default graph, which is incorrect and causes unexpected behavior.
The fix resets default graph in the operator's "finish_bundle" call to properly do cleanup.
* Pin dill's version.1 parent f9cfab1 commit c245c8a
File tree
2 files changed
+4
-0
lines changed- solutionbox/structured_data/mltoolbox/_structured_data/prediction
2 files changed
+4
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments