MCPcopy Create free account
hub / github.com/THUDM/GLM / __init__

Method __init__

data_utils/datasets.py:154–159  ·  view source on GitHub ↗
(self, ds, split_inds, **kwargs)

Source from the content-addressed store, hash-verified

152 """
153
154 def __init__(self, ds, split_inds, **kwargs):
155 self.split_inds = list(split_inds)
156 self.wrapped_data = ds
157 self.is_lazy = isinstance(ds, LazyLoader) or (hasattr(ds, 'is_lazy') and ds.is_lazy)
158 self._X = None
159 self._Y = None
160
161 def __len__(self):
162 return len(self.split_inds)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected