| 89 | class XrtTfContext : public std::enable_shared_from_this<XrtTfContext> { |
| 90 | public: |
| 91 | struct Options { |
| 92 | // Enable async mode. |
| 93 | // TODO(phawkins): this is not tested. |
| 94 | bool async = false; |
| 95 | |
| 96 | // Maximum number of ops to keep queued. |
| 97 | int max_queue_size = 100; |
| 98 | }; |
| 99 | static xla::StatusOr<std::shared_ptr<XrtTfContext>> Create( |
| 100 | const Options& options, std::shared_ptr<XrtTfClient> client, |
| 101 | const std::string& job, int task); |
no outgoing calls