Vendor-agnostic compute/memory backend. CPUBackend, CUDABackend (Phase 1.5), and HIPBackend (Phase 1....
Definition device_backend.hpp:219
Dataset over a line-delimited text corpus: each line becomes one sample, tokenized via Tokenizer::Tok...
Definition text_dataset.hpp:25
int64_t size() const override
Number of samples in this dataset.
TextDataset(const std::string &corpus_path, const Vocabulary *vocabulary, DeviceBackend *backend)
Sample get(int64_t index) const override
One dataset sample: an ordered list of Tensor fields (e.g. {features, label} or {image,...
Definition dataset.hpp:19