Open yueyinqiu opened 1 week ago
related to https://github.com/dotnet/TorchSharp/discussions/1348#discussioncomment-10035168 #1354 #1358
As mentioned here https://github.com/dotnet/TorchSharp/pull/1357#issuecomment-2478038515, the current version has no API changes (except the type of dataset and collate_fn in DataLoader<T, S>
).
However we don't actually need Dataset<T>
, Dataset
and IterableDataset
. Do we have any plan to remove them later? They may also occupy the position of some other classes in PyTorch, like #1353.
(But I find it hard to use [Obsolete]
on them since some methods are using them as the return type.)
torch.utils.data.ConcatDataset
IDataset<out T>
is addedDataset<T>
implementsIDataset<T>
DataLoader()
has been added, to acceptIDataset
datasetsDataLoader<T, S>
, rather than its subclassesDataLoader<T, S>
have been relaxed toIDataset<T>
DataLoader<T, S>
has been relaxed toIReadOnlyList