You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/types/shapes/shape.go
+4-22Lines changed: 4 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -87,12 +87,10 @@ const DimUnknown = -1
87
87
//
88
88
// Use Make to create a new shape. See example in package shapes documentation.
89
89
typeShapestruct {
90
-
DType dtypes.DType
91
-
Dimensions []int
92
-
DimensionBounds []int// Upper bounds for dynamic dimensions (when Dimensions[i] == DimUnknown). nil or len(DimensionBounds)==len(Dimensions). 0 means no bound.
93
-
TupleShapes []Shape// Shapes of the tuple, if this is a tuple.
94
-
Quantization*Quantization// Quantization metadata for quantized types.
95
-
EncodeBoundsbool// Whether to encode DimensionBounds in StableHLO output. Set to true for ops that require bounded dynamism (e.g., dynamic_reshape).
90
+
DType dtypes.DType
91
+
Dimensions []int
92
+
TupleShapes []Shape// Shapes of the tuple, if this is a tuple.
93
+
Quantization*Quantization// Quantization metadata for quantized types.
96
94
}
97
95
98
96
// Make returns a Shape structure filled with the values given.
@@ -136,20 +134,6 @@ func (s Shape) IsDynamic() bool {
136
134
returnslices.Contains(s.Dimensions, DimUnknown)
137
135
}
138
136
139
-
// hasBoundedDynamism returns true if the shape has at least one dynamic dimension
140
-
// with a known upper bound. This is used for StableHLO bounds encoding.
0 commit comments