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

Method MakeTupleShape

tensorflow/compiler/xla/shape_util.cc:264–273  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

262}
263
264/* static */ Shape ShapeUtil::MakeTupleShape(absl::Span<const Shape> shapes) {
265 Shape result;
266 result.set_element_type(TUPLE);
267 result.mutable_tuple_shapes()->reserve(shapes.size());
268 for (const auto& shape : shapes) {
269 AppendShapeToTuple(shape, &result);
270 }
271 TF_DCHECK_OK(ValidateShapeWithOptionalLayout(result));
272 return result;
273}
274
275/* static */ Shape ShapeUtil::MakeOpaqueShape() {
276 Shape result;

Callers

nothing calls this directly

Calls 4

set_element_typeMethod · 0.80
mutable_tuple_shapesMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected