(data_item, index)
| 113 | results = [None] * len(inputs) |
| 114 | |
| 115 | def call_wrap(data_item, index): |
| 116 | try: |
| 117 | session = agent.create_session() |
| 118 | result = self.predict_single(session, data_item) |
| 119 | self.save_single(index, data_item, result, session) |
| 120 | except Exception as e: |
| 121 | import traceback |
| 122 | traceback.print_exc() |
| 123 | pass |
| 124 | results[index] = result |
| 125 | |
| 126 | for idx, item in enumerate(inputs): |
| 127 | if already_runs is not None and already_runs[idx] is not None: |
nothing calls this directly
no test coverage detected