| 164 | class State { |
| 165 | public: |
| 166 | State(IfOp* kernel, OpKernelContext* ctx, bool cond, FHandle then_handle, |
| 167 | FHandle else_handle, DoneCallback done) |
| 168 | : kernel_(kernel), |
| 169 | ctx_(ctx), |
| 170 | cond_(cond), |
| 171 | then_handle_(then_handle), |
| 172 | else_handle_(else_handle), |
| 173 | done_(std::move(done)), |
| 174 | lib_(CHECK_NOTNULL(ctx_->function_library())) { |
| 175 | SetRunOptions(ctx_, &opts_, true /* always_collect_stats */); |
| 176 | for (int i = 1; i < ctx_->num_inputs(); ++i) { |
| 177 | args_.push_back(ctx_->input(i)); |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | ~State() {} |
| 182 |
nothing calls this directly
no test coverage detected