def __init__(self, data, limit=None):
        self._cpu_data = data

        if limit is None or limit > data.shape[0]:
            limit = data.shape[0]
        self._limit = limit

        self._gpu_data = create_shared(self._cpu_data[0:limit])
        self._cur_irange = create_shared(np.asarray([0, limit]))
dataset/ETHPy150Open Cysu/dlearn/dlearn/data/hidata.py/HierarData.__init__/original