Replies: 2 comments 1 reply
-
About the dotnet version, we'd like to make TorchSharp be able to work on all the dotnet platforms that haven't lose support, so it's And other breaking changes... Actually I've made some, so it used to be allowed, but I'm not sure for now... API compatibility check has been added in July. It's not intentionally done by the repo's manager, I think, so we still haven't find out the common routine to deal with the breaking changes. By the way, if spans could be added as overloads, it won't be regarded as a breaking change, so that's fine. And those obsolete stuffs, maybe we could remove them all in a future "refactoring" version. |
Beta Was this translation helpful? Give feedback.
-
If you make a fork that only targets .net 8 or 9 I am 100% moving right away. Recently I've had many disappointments with standard 2.0 and its not worth maintaining it for me. |
Beta Was this translation helpful? Give feedback.
-
Hello! I'm interesting in contributing. I'm looking for some clarification about what kinds of breaking changes are allowed, if any.
Obsolete Members
I noticed some of these while I was browsing the codebase. Do you mind if I do a pass and remove them all?
Replace
T[]
with{ReadOnly}Span<T>
There are many places where arrays could be replaced with spans. This would reduce allocations and improve performance.
Adding span overloads to avoid breaking changes would significantly bloat the library.
Bump to latest .NET
Precedent: https://github.com/dotnet/ClangSharp
Exclusively targeting the latest .NET version would enable us to take advantage of all the recent improvements and features. For example,
Tensor
could benefit from the generic math interfaces.I assume the answer is no because I noticed that Microsoft.ML.TorchSharp uses .NET Standard, but it's worth discussing.
Beta Was this translation helpful? Give feedback.
All reactions