(self, x_batch, context)
| 384 | |
| 385 | class IdentityBatchedStreamingAPI(ls.test_examples.SimpleBatchedAPI): |
| 386 | def predict(self, x_batch, context): |
| 387 | for c, x in zip(context, x_batch): |
| 388 | c["input"] = x |
| 389 | yield self.model(x_batch) |
| 390 | |
| 391 | def encode_response(self, output_stream, context): |
| 392 | for _ in output_stream: |