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

Method ClearLayout

tensorflow/compiler/xla/layout_util.cc:255–260  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

253}
254
255/* static */ void LayoutUtil::ClearLayout(Shape* shape) {
256 shape->clear_layout();
257 for (auto& element_shape : *shape->mutable_tuple_shapes()) {
258 ClearLayout(&element_shape);
259 }
260}
261
262/* static */ void LayoutUtil::ClearLayout(ProgramShape* program_shape) {
263 for (auto& parameter_shape : *program_shape->mutable_parameters()) {

Callers

nothing calls this directly

Calls 4

clear_layoutMethod · 0.80
mutable_tuple_shapesMethod · 0.80
mutable_parametersMethod · 0.80
mutable_resultMethod · 0.80

Tested by

no test coverage detected