Fix random crop op problem

revert-12469-sum_op_dim_fix
minqiyang 7 years ago
parent 76ee482e18
commit e4e9450e88

@ -21,7 +21,7 @@ from op_test import OpTest
class TestRandomCropOp(OpTest):
def setUp(self):
to_crop = np.array([[[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]] *
5).astype("float32")
5).astype(np.int32)
self.possible_res = [
np.array([[1, 2, 3], [5, 6, 7]]), np.array([[2, 3, 4], [6, 7, 8]]),
np.array([[5, 6, 7], [9, 10, 11]]),

Loading…
Cancel
Save