infer
get_batch(redis, model_names)
¶
Run a heuristic to select the best batch to infer on redis[Redis]: redis client model_names[List[str]]: list of models with nonzero number of requests returns: Tuple[List[Dict], str] List[Dict] represents a batch of request dicts str is the model id
Source code in inference/enterprise/parallel/infer.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
write_infer_arrays_and_launch_postprocess(arrs, request, preproc_return_metadata)
¶
Write inference results to shared memory and launch the postprocessing task
Source code in inference/enterprise/parallel/infer.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
|