TensorStack.Common
0.15.1
Prefix Reserved
dotnet add package TensorStack.Common --version 0.15.1
NuGet\Install-Package TensorStack.Common -Version 0.15.1
<PackageReference Include="TensorStack.Common" Version="0.15.1" />
<PackageVersion Include="TensorStack.Common" Version="0.15.1" />
<PackageReference Include="TensorStack.Common" />
paket add TensorStack.Common --version 0.15.1
#r "nuget: TensorStack.Common, 0.15.1"
#:package TensorStack.Common@0.15.1
#addin nuget:?package=TensorStack.Common&version=0.15.1
#tool nuget:?package=TensorStack.Common&version=0.15.1
TensorStack.Common
TensorStack.Common is the core library shared by every TensorStack package.
Nuget Package
It contains:
- Tensors -
Tensor<T>,TensorSpan, and the media tensorsImageTensor,AudioTensorandVideoSequence/VideoFrame - Media base classes -
ImageInputBase,AudioInputBase,VideoInputBaseand the stream bases, implemented by TensorStack.Media - Pipelines -
IPipeline,IRunOptions,IRunProgressandRunProgress - Backends - the
Backendbase class,BackendConfig,BackendStatusandBackendTypeused by the HuggingFace, stable-diffusion.cpp, llama.cpp and audio.cpp backends - Devices -
Device,DeviceTypeandVendorType - Vision - coordinate types (
Coordinate,CoordinateBox,CoordinateResult) and CLIP image helpers - Common -
TextInput,Normalizationand tensor extension methods
AudioTensor layout
AudioTensor has shape [Samples, Channels] and holds interleaved PCM floats in the range -1 to 1, frame by frame:
s0_ch0, s0_ch1, s1_ch0, s1_ch1, .... This matches ffmpeg, WAV, stable-diffusion.cpp and audio.cpp, so the buffer is passed to them unchanged.
audio[n, c] is sample n of channel c. Samples is the count per channel, not the buffer length.
var audio = new AudioTensor(interleaved, channels: 2, sampleRate: 48000);
float[] left = audio.GetChannel(0);
AudioTensor mono = audio.ToMono();
AudioTensor chunk = audio.GetSequence(1.5f, 2f); // 2 seconds from 1.5 seconds
// PyTorch / NumPy use planar [Channels, Samples], convert at that boundary
float[] planar = audio.ToPlanar();
var fromTorch = AudioTensor.FromPlanar(planar, channels: 2, sampleRate: 48000);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows10.0.17763 is compatible. |
-
net10.0-windows10.0.17763
- System.Numerics.Tensors (>= 11.0.0)
NuGet packages (9)
Showing the top 5 NuGet packages that depend on TensorStack.Common:
| Package | Downloads |
|---|---|
|
TensorStack.WPF
Package Description |
|
|
TensorStack.Media
Image/Audio/Video tensor operations for .NET using ONNX Runtime |
|
|
TensorStack.OnnxRuntime
Core library for ONNX model/session management. |
|
|
TensorStack.HuggingFace
C# -> Python interface for Diffusers StableDiffusion |
|
|
TensorStack.OnnxRuntime.Vision
Image and video upscaling for .NET using ONNX Runtime. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on TensorStack.Common:
| Repository | Stars |
|---|---|
|
saddam213/AmuseAI
Local AI image, video, audio and text.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.15.1 | 0 | 11/21/2026 |
| 0.15.0 | 96 | 11/18/2026 |
| 0.14.14 | 90 | 11/17/2026 |
| 0.14.13 | 129 | 11/16/2026 |
| 0.14.12 | 124 | 11/15/2026 |
| 0.14.11 | 124 | 11/15/2026 |
| 0.14.10 | 138 | 11/14/2026 |
| 0.14.9 | 135 | 11/13/2026 |
| 0.14.8 | 132 | 11/10/2026 |
| 0.14.7 | 134 | 11/8/2026 |
| 0.14.6 | 142 | 11/5/2026 |
| 0.14.5 | 155 | 11/1/2026 |
| 0.14.4 | 196 | 10/29/2026 |
| 0.14.3 | 133 | 10/28/2026 |
| 0.14.2 | 171 | 10/20/2026 |
| 0.14.1 | 151 | 10/16/2026 |
| 0.13.13 | 145 | 10/11/2026 |
| 0.13.12 | 135 | 10/10/2026 |
| 0.13.10 | 145 | 10/6/2026 |
| 0.13.9 | 130 | 10/5/2026 |