MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / State

Method State

tensorflow/core/kernels/functional_ops.cc:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

SetRunOptionsFunction · 0.85
function_libraryMethod · 0.45
num_inputsMethod · 0.45
push_backMethod · 0.45
inputMethod · 0.45

Tested by

no test coverage detected