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

Method clear_dynamic_dimensions

tensorflow/compiler/xla/shape.h:135–145  ·  view source on GitHub ↗

Recursively clear dynamic dimension of a shape.

Source from the content-addressed store, hash-verified

133
134 // Recursively clear dynamic dimension of a shape.
135 void clear_dynamic_dimensions() {
136 if (!IsTuple()) {
137 for (size_t i = 0; i < dynamic_dimensions_.size(); ++i) {
138 dynamic_dimensions_[i] = false;
139 }
140 return;
141 }
142 for (auto& subshape : tuple_shapes_) {
143 subshape.clear_dynamic_dimensions();
144 }
145 }
146
147 void Swap(Shape* other) {
148 using std::swap;

Callers 4

DefaultActionMethod · 0.80
RunMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected