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

Function DequeueManyV2Shape

tensorflow/core/ops/data_flow_ops.cc:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace {
28
29Status DequeueManyV2Shape(InferenceContext* c, ShapeHandle n_shape) {
30 auto* t = c->input_handle_shapes_and_types(0);
31 if (t != nullptr && t->size() == c->num_outputs()) {
32 for (int i = 0; i < c->num_outputs(); ++i) {
33 ShapeHandle combined_shape;
34 TF_RETURN_IF_ERROR(
35 c->Concatenate(n_shape, (*t)[i].shape, &combined_shape));
36 c->set_output(i, combined_shape);
37 }
38 return Status::OK();
39 } else {
40 return shape_inference::UnknownShape(c);
41 }
42}
43
44} // namespace
45

Callers 1

data_flow_ops.ccFile · 0.85

Calls 6

UnknownShapeFunction · 0.50
sizeMethod · 0.45
num_outputsMethod · 0.45
ConcatenateMethod · 0.45
set_outputMethod · 0.45

Tested by

no test coverage detected