dotnet / TorchSharp

A .NET library that provides access to the library that powers PyTorch.
MIT License
1.41k stars 182 forks source link

concat dataset #1411

Open yueyinqiu opened 1 week ago

yueyinqiu commented 1 week ago
yueyinqiu commented 1 week ago

related to https://github.com/dotnet/TorchSharp/discussions/1348#discussioncomment-10035168 #1354 #1358

yueyinqiu commented 1 week ago

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.)