[docs]classRawDataLoader(BaseDataLoader):"""A loader object can load samples and labels from storage for classification tasks."""
[docs]deftarget(self,sample:typing.Any)->torch.Tensor:"""Load only sample target from its raw representation. Parameters ---------- sample Information about the sample to load. Implementation dependent. Returns ------- The label corresponding to the specified sample, encapsulated as a 1D torch float tensor. """raiseNotImplementedError("You must implement the `target()` method")