![]() |
VOOZH | about |
dotnet add package EricLouchez.Shorokoo.Modules --version 0.1.7-dev
NuGet\Install-Package EricLouchez.Shorokoo.Modules -Version 0.1.7-dev
<PackageReference Include="EricLouchez.Shorokoo.Modules" Version="0.1.7-dev" />
<PackageVersion Include="EricLouchez.Shorokoo.Modules" Version="0.1.7-dev" />Directory.Packages.props
<PackageReference Include="EricLouchez.Shorokoo.Modules" />Project file
paket add EricLouchez.Shorokoo.Modules --version 0.1.7-dev
#r "nuget: EricLouchez.Shorokoo.Modules, 0.1.7-dev"
#:package EricLouchez.Shorokoo.Modules@0.1.7-dev
#addin nuget:?package=EricLouchez.Shorokoo.Modules&version=0.1.7-dev&prereleaseInstall as a Cake Addin
#tool nuget:?package=EricLouchez.Shorokoo.Modules&version=0.1.7-dev&prereleaseInstall as a Cake Tool
Baseline neural-network library for Shorokoo: ready-made layers, loss functions, optimizers, and initializers built from Shorokoo modules.
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.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 via StateUpdate),
LayerNorm, RMSNorm, GroupNorm, InstanceNorm2d, Dropout (training flag),
Embedding, MultiHeadAttention / TransformerEncoderLayer (+ the
Attention.ScaledDotProductAttention helper), LeakyReLU/ELU (hyper alpha),
PReLU (learnable slope), and the Pooling / GatedLinear.GLU helpers
(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.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.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) and OptimizerScalarZeros (a rank-0 scalar, e.g. Adam's
timestep) — and threaded with StateUpdate; never declared in the Inline
signature.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 | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.7-dev | 45 | 6/16/2026 |
| 0.1.6-dev | 41 | 6/16/2026 |
| 0.1.4-preview.1 | 55 | 6/12/2026 |