From 8c4603c73675958efc960fbd4bb599a2909d106a Mon Sep 17 00:00:00 2001 From: Konstantin Date: Mon, 16 Jan 2023 14:52:43 +0100 Subject: Source codes --- WhisperNet/API/eModelImplementation.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 WhisperNet/API/eModelImplementation.cs (limited to 'WhisperNet/API/eModelImplementation.cs') diff --git a/WhisperNet/API/eModelImplementation.cs b/WhisperNet/API/eModelImplementation.cs new file mode 100644 index 0000000..1b0a079 --- /dev/null +++ b/WhisperNet/API/eModelImplementation.cs @@ -0,0 +1,25 @@ +namespace Whisper +{ + /// Implementation value for the factory function + public enum eModelImplementation: uint + { + /// GPGPU implementation based on Direct3D 11.0 compute shaders + GPU = 1, + + /// A hybrid implementation which uses DirectCompute for encode, and decodes on CPU + /// + /// The build of the native DLL included into this nuget package doesn’t implement this version.
+ /// To enable, edit stdafx.h in Whisper project, change the value of BUILD_HYBRID_VERSION macro from zero to one, and build.
+ /// This implementation requires a CPU with AVX1, FMA3, F16C and BMI1 instruction set extensions. + ///
+ Hybrid = 2, + + /// A reference implementation which uses the original GGML CPU-running code. + /// + /// The build of the native DLL included into this nuget package doesn’t implement this version either.
+ /// To enable, edit stdafx.h in Whisper project, change the value of BUILD_BOTH_VERSIONS macro from zero to one, and build the project.
+ /// This implementation requires a CPU with AVX1, FMA3, and F16C instruction set extensions. + ///
+ Reference = 3, + } +} \ No newline at end of file -- cgit v1.2.3