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

Method Run

tensorflow/core/framework/shape_inference.cc:160–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158InferenceContext::~InferenceContext() {}
159
160Status InferenceContext::Run(
161 const std::function<Status(shape_inference::InferenceContext* c)>& fn) {
162 ForgetMerges();
163 Status s = fn(this);
164 if (!s.ok()) {
165 ForgetMerges();
166 return AttachContext(s);
167 }
168#ifndef NDEBUG
169 for (int i = 0; i < num_outputs(); ++i) {
170 DCHECK(output(i).IsSet())
171 << i << " for " << node_def_->name() << " of type " << node_def_->op();
172 }
173#endif // NDEBUG
174 return s;
175}
176
177Status InferenceContext::set_output(StringPiece output_name,
178 const std::vector<ShapeHandle>& shapes) {

Callers 4

ParamsMethod · 0.45
InferShapesMethod · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45

Calls 5

nameMethod · 0.65
fnFunction · 0.50
okMethod · 0.45
IsSetMethod · 0.45
opMethod · 0.45

Tested by 3

InferShapesMethod · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36