Files
Whisper/WhisperNet/API/eModelImplementation.cs
2023-03-10 18:10:07 +01:00

25 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace Whisper
{
/// <summary>Implementation value for the <see cref="Library.loadModel(string, eGpuModelFlags, string?, eModelImplementation)" /> factory function</summary>
public enum eModelImplementation: uint
{
/// <summary>GPGPU implementation based on Direct3D 11.0 compute shaders</summary>
GPU = 1,
/// <summary>A hybrid implementation which uses DirectCompute for encode, and decodes on CPU</summary>
/// <remarks>
/// <para>The build of the native DLL included into this nuget package doesn’t implement this version.<br/>
/// To enable, edit <c>stdafx.h</c> in Whisper project, change the value of <c>BUILD_HYBRID_VERSION</c> macro from zero to one, and build.</para>
/// <para>This implementation requires a CPU with AVX1, FMA3, F16C and BMI1 instruction set extensions.</para>
/// </remarks>
Hybrid = 2,
/// <summary>A reference implementation which uses the original GGML CPU-running code.</summary>
/// <remarks>
/// <para>The build of the native DLL included into this nuget package doesn’t implement this version either.<br/>
/// To enable, edit <c>stdafx.h</c> in Whisper project, change the value of <c>BUILD_BOTH_VERSIONS</c> macro from zero to one, and build the project.</para>
/// <para>This implementation requires a CPU with AVX1, FMA3, and F16C instruction set extensions.</para>
/// </remarks>
Reference = 3,
}
}