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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TensorStack.Common" Version="0.15.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TensorStack.Common" Version="0.15.1" />
                    
Directory.Packages.props
<PackageReference Include="TensorStack.Common" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TensorStack.Common --version 0.15.1
                    
#r "nuget: TensorStack.Common, 0.15.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TensorStack.Common@0.15.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TensorStack.Common&version=0.15.1
                    
Install as a Cake Addin
#tool nuget:?package=TensorStack.Common&version=0.15.1
                    
Install as a Cake Tool

TensorStack.Common

TensorStack.Common is the core library shared by every TensorStack package.

Nuget Package

Common Badge

It contains:

  • Tensors - Tensor<T>, TensorSpan, and the media tensors ImageTensor, AudioTensor and VideoSequence / VideoFrame
  • Media base classes - ImageInputBase, AudioInputBase, VideoInputBase and the stream bases, implemented by TensorStack.Media
  • Pipelines - IPipeline, IRunOptions, IRunProgress and RunProgress
  • Backends - the Backend base class, BackendConfig, BackendStatus and BackendType used by the HuggingFace, stable-diffusion.cpp, llama.cpp and audio.cpp backends
  • Devices - Device, DeviceType and VendorType
  • Vision - coordinate types (Coordinate, CoordinateBox, CoordinateResult) and CLIP image helpers
  • Common - TextInput, Normalization and 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 Compatible and additional computed target framework versions.
.NET net10.0-windows10.0.17763 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed