def setUp(self):
    self.op_type = 'roll'
    self.init_dtype_type()
    self.inputs = {'X': np.random.random(self.x_shape).astype(self.dtype)}
    self.attrs = {'shifts': self.shifts, 'dims': self.dims}
    self.outputs = {'Out': np.roll(self.inputs['X'], self.attrs['shifts'], self.attrs['dims'])}
def setUp(self):
    self.op_type = 'roll'
    self.init_dtype_type()
    self.inputs = {'X': np.random.random(self.x_shape).astype(self.dtype)}
    self.attrs = {'shifts': self.shifts, 'dims': self.dims}
    self.outputs = {'Out': np.roll(self.inputs['X'], self.attrs['shifts'], self.attrs['dims'])}