@@ -124,7 +124,7 @@ mod reduction {
124
124
) ) ;
125
125
let val_ref = tensor_ref. sum_dim ( reduce_dim) ;
126
126
127
- val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 3 ) ;
127
+ val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 2 ) ;
128
128
}
129
129
130
130
#[ test]
@@ -142,7 +142,7 @@ mod reduction {
142
142
) ) ;
143
143
let val_ref = tensor_ref. sum_dim ( reduce_dim) ;
144
144
145
- val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 3 ) ;
145
+ val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 2 ) ;
146
146
}
147
147
148
148
#[ test]
@@ -160,7 +160,7 @@ mod reduction {
160
160
) ) ;
161
161
let val_ref = tensor_ref. sum_dim ( reduce_dim) ;
162
162
163
- val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 3 ) ;
163
+ val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 2 ) ;
164
164
}
165
165
166
166
#[ test]
@@ -181,7 +181,7 @@ mod reduction {
181
181
) ) ;
182
182
let val_ref = tensor_ref. sum_dim ( reduce_dim) ;
183
183
184
- val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 3 ) ;
184
+ val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 2 ) ;
185
185
}
186
186
187
187
#[ test]
@@ -199,7 +199,7 @@ mod reduction {
199
199
) ) ;
200
200
let val_ref = tensor_ref. mean_dim ( reduce_dim) ;
201
201
202
- val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 3 ) ;
202
+ val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 2 ) ;
203
203
}
204
204
205
205
#[ test]
@@ -254,7 +254,7 @@ mod reduction {
254
254
) ) ;
255
255
let val_ref = tensor_ref. sum ( ) ;
256
256
257
- val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 3 ) ;
257
+ val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 2 ) ;
258
258
}
259
259
260
260
#[ test]
@@ -270,7 +270,7 @@ mod reduction {
270
270
) ) ;
271
271
let val_ref = tensor_ref. prod ( ) ;
272
272
273
- val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 3 ) ;
273
+ val_ref. into_data ( ) . assert_approx_eq ( & val. into_data ( ) , 2 ) ;
274
274
}
275
275
276
276
#[ test]
0 commit comments