Skip to content

update to torchsharp 0.99 and bug fix (remove cycles) for ModelBase.ToString()#441

Open
sir-deenicus wants to merge 4 commits intoDiffSharp:devfrom
sir-deenicus:dev
Open

update to torchsharp 0.99 and bug fix (remove cycles) for ModelBase.ToString()#441
sir-deenicus wants to merge 4 commits intoDiffSharp:devfrom
sir-deenicus:dev

Conversation

@sir-deenicus
Copy link
Copy Markdown
Contributor

No description provided.

* **build**: update `TargetFramework` to `net8.0` / `net8` across all projects.
* **build**: bump `FSharp.Core` (to 9.0.303), `TorchSharp` (to 0.106.0), and `SixLabors.ImageSharp` (to 3.1.12).
* **refactor(Torch)**: adapt to TorchSharp v0.106.0 API changes.
  - Pass shape dimensions as `ReadOnlySpan<int64>`.
  - Wrap `dtype` arguments in `Nullable()`.
  - Fix renamed kwargs in ops (e.g., `strides` to `stride`, `paddings` to `padding`, `dim` casting).
  - Add `unmanaged` constraint to `ToRawDataViaDirectAccess` to satisfy memory access rules.
* **refactor(Data)**: replace obsolete `System.Net.WebClient` with `System.Net.Http.HttpClient` for dataset downloads.
* **refactor(Image)**: migrate to ImageSharp v3 APIs. Replace `.Item(x,y)` with direct indexers `[x,y]` and use explicit generic `Image.Load<PixelFormats.RgbaVector>`.
* **fix(Plot)**: add explicit `int` type annotation to `timeoutMilliseconds` to resolve type inference ambiguity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant