EricLouchez.Shorokoo.Modules
0.1.8-dev
dotnet add package EricLouchez.Shorokoo.Modules --version 0.1.8-dev
NuGet\Install-Package EricLouchez.Shorokoo.Modules -Version 0.1.8-dev
<PackageReference Include="EricLouchez.Shorokoo.Modules" Version="0.1.8-dev" />
<PackageVersion Include="EricLouchez.Shorokoo.Modules" Version="0.1.8-dev" />
<PackageReference Include="EricLouchez.Shorokoo.Modules" />
paket add EricLouchez.Shorokoo.Modules --version 0.1.8-dev
#r "nuget: EricLouchez.Shorokoo.Modules, 0.1.8-dev"
#:package EricLouchez.Shorokoo.Modules@0.1.8-dev
#addin nuget:?package=EricLouchez.Shorokoo.Modules&version=0.1.8-dev&prerelease
#tool nuget:?package=EricLouchez.Shorokoo.Modules&version=0.1.8-dev&prerelease
Shorokoo.Modules
Baseline neural-network library for Shorokoo: ready-made layers, loss functions, optimizers, and initializers built from Shorokoo modules.
- Initializers (
Shorokoo.Modules.Initializers) —Zeros,Ones,Uniform,Normal,XavierUniform,XavierNormal,KaimingUniform,KaimingNormal,TruncatedNormal,LeCunNormal. All shape-only[TrainableParamInitializer]s; the random ones are seeded (deterministic), and Xavier/Kaiming/LeCun compute fan-in/fan-out in-graph from the shape vector. - Layers (
Shorokoo.Modules.Layers) —Linear,Conv1d,Conv2d,Conv3d(hyperparameter-driven geometry via the dynamic Conv lowering),ConvTranspose2d(default geometry, kernel inferred from the weight),BatchNorm2d/BatchNorm1d(training/eval flag, running stats viaStateUpdate),LayerNorm,RMSNorm,GroupNorm,InstanceNorm2d,Dropout(training flag),Embedding,MultiHeadAttention/TransformerEncoderLayer(+ theAttention.ScaledDotProductAttentionhelper),LeakyReLU/ELU(hyper alpha),PReLU(learnable slope), and thePooling/GatedLinear.GLUhelpers (MaxPool2d,AvgPool2d,GlobalAvgPool2d,GlobalMaxPool2d,Flatten). Plain activations are tensor one-liners —x.Relu(),x.Gelu(),x.Sigmoid(),x.Tanh(),x.Softmax(axis)— and need no modules. - Losses (
Shorokoo.Modules.Losses) —L2Loss(MSE),L1Loss,HuberLoss(delta)/SmoothL1Loss,CrossEntropyLoss(logits + int64 class indices),NLLLoss,BCELoss,BCEWithLogitsLoss,KLDivLoss(log-probs + probs). All map (predictions, targets) → scalar loss. - Optimizers (
Shorokoo.Modules.Optimizers) —SGDOptimizer,SGDMomentumOptimizer,AdamOptimizer(with bias correction),AdamWOptimizer,RMSpropOptimizer,AdagradOptimizer, with strongly typed hyperparameter sets and learning-rate schedules (Schedules.*). Optimizer state (moments, velocity, accumulators) is created inside each module via optimizer-owned[StateInitializer]s —OptimizerStateZeros(param-shaped) andOptimizerScalarZeros(a rank-0 scalar, e.g. Adam's timestep) — and threaded withStateUpdate; never declared in theInlinesignature.
dotnet add package Shorokoo.Modules
using Shorokoo.Modules.Optimizers;
using Shorokoo.Modules.Losses;
var rig = TrainingRig.FromScratch(
MyModel.ComputationGraph,
CrossEntropyLoss.ComputationGraph,
AdamOptimizer.ComputationGraph,
sampleInputs,
new AdamOptimizerHyperparameters { LearningRate = 1e-3f });
Documentation: https://github.com/Eric-Louchez/Shorokoo
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- EricLouchez.Shorokoo.Core (>= 0.1.8-dev)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EricLouchez.Shorokoo.Modules:
| Package | Downloads |
|---|---|
|
EricLouchez.Shorokoo
Define, train, and run neural networks in pure C#. Meta-package that brings the Shorokoo runtime (Shorokoo.Core), ready-made layers (Shorokoo.Modules), and the [Module] source generator (Shorokoo.CodeGen). Add exactly one backend: Shorokoo.LinuxCPU, Shorokoo.LinuxGPU, Shorokoo.WinCPU, or Shorokoo.WinGPU. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.8-dev | 30 | 6/20/2026 |
| 0.1.7-dev | 57 | 6/16/2026 |
| 0.1.6-dev | 44 | 6/16/2026 |
| 0.1.4-preview.1 | 56 | 6/12/2026 |