| 69 | } |
| 70 | |
| 71 | static SessionOptions Options(const string& target, int placement_period) { |
| 72 | SessionOptions options; |
| 73 | // NOTE(mrry): GrpcSession requires a grpc:// scheme prefix in the target |
| 74 | // string. |
| 75 | options.target = strings::StrCat("grpc://", target); |
| 76 | options.config.set_placement_period(placement_period); |
| 77 | options.config.mutable_graph_options() |
| 78 | ->mutable_optimizer_options() |
| 79 | ->set_opt_level(OptimizerOptions::L0); |
| 80 | return options; |
| 81 | } |
| 82 | |
| 83 | static Session* NewRemote(const SessionOptions& options) { |
| 84 | return CHECK_NOTNULL(NewSession(options)); |
no test coverage detected