mirror of
https://github.com/Const-me/Whisper.git
synced 2026-10-18 13:10:52 +08:00
25 lines
1.4 KiB
C#
25 lines
1.4 KiB
C#
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,
|
||
}
|
||
} |