@@ -828,7 +828,7 @@ func Concatenate(inputs []shapes.Shape, axis int) (output shapes.Shape, err erro
828828 rank , i , currentShape .Rank ())
829829 }
830830
831- for d := 0 ; d < rank ; d ++ {
831+ for d := range rank {
832832 if d == axis {
833833 // For the concatenation axis, add dimensions (handling dynamic dims)
834834 if output .Dimensions [d ] != shapes .DimUnknown && currentShape .Dimensions [d ] != shapes .DimUnknown {
@@ -987,7 +987,7 @@ func Slice(operand shapes.Shape, starts, limits, strides []int) (output shapes.S
987987 Dimensions : make ([]int , rank ),
988988 }
989989
990- for axis := 0 ; axis < rank ; axis ++ {
990+ for axis := range rank {
991991 start , limit , stride := starts [axis ], limits [axis ], strides [axis ]
992992 dimSize := operand .Dimensions [axis ]
993993
@@ -1170,7 +1170,7 @@ func ReduceWindow(inputs, initialValues []shapes.Shape, reductionInputs, reducti
11701170 // Each output dimension is calculated orthogonally to the others.
11711171 outputDims := make ([]int , rank )
11721172 operand := inputs [0 ]
1173- for i := 0 ; i < rank ; i ++ {
1173+ for i := range rank {
11741174 inputDim := operand .Dimensions [i ]
11751175 windowDim := windowDimensions [i ]
11761176 if windowDim < 1 {
@@ -1550,10 +1550,10 @@ func DotGeneral(
15501550 // Check that all sizes are positive or dynamic (negative for dynamic dimensions is allowed)
15511551 // Note: Sizes can be negative when dimensions are dynamic. We only validate that non-dynamic sizes are positive.
15521552 // The actual validation happens at runtime when concrete dimensions are known.
1553- _ = batchSize // May be negative (dynamic), validated at runtime
1554- _ = lhsCrossSize // May be negative (dynamic), validated at runtime
1553+ _ = batchSize // May be negative (dynamic), validated at runtime
1554+ _ = lhsCrossSize // May be negative (dynamic), validated at runtime
15551555 _ = contractingSize // May be negative (dynamic), validated at runtime
1556- _ = rhsCrossSize // May be negative (dynamic), validated at runtime
1556+ _ = rhsCrossSize // May be negative (dynamic), validated at runtime
15571557
15581558 // Reshape result to recover batch and cross dimensions.
15591559 resultingDims := make ([]int , 0 , len (batchDims )+ len (lhsCrossDims )+ len (rhsCrossDims ))
0 commit comments