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

Method ExpandOutputs

tensorflow/core/framework/shape_inference.cc:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244Status InferenceContext::ExpandOutputs(int new_output_size) {
245 if (new_output_size < outputs_.size()) {
246 return errors::InvalidArgument("Trying to reduce number of outputs of op.");
247 }
248 outputs_.resize(new_output_size, nullptr);
249 output_handle_shapes_and_types_.resize(new_output_size);
250 return Status::OK();
251}
252
253void InferenceContext::PostInputInit(
254 std::vector<std::unique_ptr<std::vector<ShapeAndType>>> input_handle_data) {

Callers 1

SetShapeMethod · 0.80

Calls 3

InvalidArgumentFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected