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

Method AppendMajorDimension

tensorflow/compiler/xla/shape_util.cc:315–320  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

313}
314
315/* static */ void ShapeUtil::AppendMajorDimension(int bound, Shape* shape) {
316 CHECK(LayoutUtil::IsDenseArray(*shape));
317 shape->mutable_layout()->add_minor_to_major(shape->rank());
318 shape->add_dimensions(bound);
319 TF_DCHECK_OK(ValidateShape(*shape));
320}
321
322/* static */ bool ShapeUtil::ElementIsIntegral(const Shape& shape) {
323 return primitive_util::IsIntegralType(shape.element_type());

Callers

nothing calls this directly

Calls 4

ValidateShapeFunction · 0.85
mutable_layoutMethod · 0.80
add_dimensionsMethod · 0.80
rankMethod · 0.45

Tested by

no test coverage detected