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

Method MakeValidatedShape

tensorflow/compiler/xla/shape_util.cc:197–203  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

195}
196
197/* static */ StatusOr<Shape> ShapeUtil::MakeValidatedShape(
198 PrimitiveType element_type, absl::Span<const int64> dimensions) {
199 CHECK(IsArrayPrimitiveType(element_type)) << element_type;
200 Shape result;
201 TF_RETURN_IF_ERROR(PopulateShape(element_type, dimensions, &result));
202 return result;
203}
204
205/* static */ StatusOr<Shape> ShapeUtil::MakeValidatedShape(
206 PrimitiveType element_type, absl::Span<const int64> dimensions,

Callers

nothing calls this directly

Calls 2

set_dynamic_dimensionMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected