id int64 0 755k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 65 | repo_stars int64 100 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 9
values | repo_extraction_date stringclasses 92
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18,607 | Tensor.cpp | Const-me_Whisper/Whisper/ML/Tensor.cpp | #include "stdafx.h"
#include "Tensor.h"
#include "../D3D/MappedResource.h"
#include "../D3D/createBuffer.h"
#include "../source/ggml.h"
using namespace DirectCompute;
Tensor::Tensor( const Tensor& that )
{
ne = that.ne;
nb = that.nb;
srv = that.srv;
uav = that.uav;
#ifdef _DEBUG
dbgType = that.dbgType;
#endif
}
... | 8,093 | C++ | .cpp | 294 | 25.445578 | 197 | 0.723884 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,608 | TensorShape.cpp | Const-me_Whisper/Whisper/ML/TensorShape.cpp | #include "stdafx.h"
#include "TensorShape.h"
#include "../source/ggml.h"
using namespace DirectCompute;
TensorShape::TensorShape()
{
setZero();
}
TensorShape::TensorShape( const TensorShape& that )
{
_mm_storeu_si128( ( __m128i* )ne.data(), that.sizeVec() );
_mm_storeu_si128( ( __m128i* )nb.data(), that.stridesVec... | 1,678 | C++ | .cpp | 64 | 24.28125 | 77 | 0.619166 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,609 | DbgNanTest.cpp | Const-me_Whisper/Whisper/ML/DbgNanTest.cpp | #include "stdafx.h"
#include "DbgNanTest.h"
#include "../D3D/MappedResource.h"
using namespace DirectCompute;
HRESULT DbgNanTest::create()
{
ID3D11Device* const dev = DirectCompute::device();
CD3D11_BUFFER_DESC desc{ 4, D3D11_BIND_UNORDERED_ACCESS };
CHECK( dev->CreateBuffer( &desc, nullptr, &bufferDefault ) );
... | 1,007 | C++ | .cpp | 31 | 30.709677 | 102 | 0.753608 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,610 | mlUtils.cpp | Const-me_Whisper/Whisper/ML/mlUtils.cpp | #include "stdafx.h"
#include "LookupTables.h"
#include "../D3D/MappedResource.h"
#include "mlUtils.h"
#include "../D3D/shaders.h"
#include "../D3D/Binder.h"
#include "DbgNanTest.h"
namespace DirectCompute
{
void zeroMemory( ID3D11UnorderedAccessView* uav, uint32_t length, bool fillWithNaN )
{
__m128i cbData = _mm_... | 3,868 | C++ | .cpp | 101 | 35.49505 | 114 | 0.7344 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,611 | LookupTables.cpp | Const-me_Whisper/Whisper/ML/LookupTables.cpp | #include "stdafx.h"
#include "LookupTables.h"
#include "LookupTablesData.h"
#include <memory>
#include "mlUtils.h"
using namespace DirectCompute;
namespace
{
HRESULT uploadLookupTable( const std::array<uint16_t, 0x10000>& rsi, CComPtr<ID3D11ShaderResourceView>& rdi )
{
rdi = nullptr;
CComPtr<ID3D11Buffer> buffer... | 1,621 | C++ | .cpp | 57 | 26.350877 | 110 | 0.733119 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,612 | tensorOpsTests.cpp | Const-me_Whisper/Whisper/ML/tensorOpsTests.cpp | #include "stdafx.h"
#include "tensorOpsTests.h"
#include "MlContext.h"
#include "TensorEx.h"
#include "../D3D/shaders.h"
#include "../D3D/Binder.h"
#include "testUtils.h"
#include "../Whisper/WhisperContext.h"
void DirectCompute::testMulMat( const ggml_tensor* src0, const ggml_tensor* src1, const ggml_tensor* dst, con... | 5,394 | C++ | .cpp | 142 | 35.873239 | 143 | 0.709708 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,613 | TensorGpuViews.cpp | Const-me_Whisper/Whisper/ML/TensorGpuViews.cpp | #include "stdafx.h"
#include "TensorGpuViews.h"
using namespace DirectCompute;
HRESULT TensorGpuViews::create( ID3D11Buffer* gpuBuffer, DXGI_FORMAT format, size_t countElements, bool makeUav )
{
srv = nullptr;
uav = nullptr;
if( countElements > UINT_MAX )
return DISP_E_OVERFLOW;
CD3D11_SHADER_RESOURCE_VIEW_DES... | 693 | C++ | .cpp | 18 | 36.444444 | 113 | 0.76155 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,614 | TempBuffers.cpp | Const-me_Whisper/Whisper/ML/TempBuffers.cpp | #include "stdafx.h"
#include "TempBuffers.h"
#include "../D3D/createBuffer.h"
#include "../D3D/MappedResource.h"
#include "mlUtils.h"
using namespace DirectCompute;
#define CHECK( hr ) { const HRESULT __hr = ( hr ); if( FAILED( __hr ) ) return __hr; }
HRESULT TempBuffers::Buffer::resize( DXGI_FORMAT format, size_t el... | 1,619 | C++ | .cpp | 51 | 29.921569 | 109 | 0.724072 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,615 | convertThings.cpp | Const-me_Whisper/Whisper/source.compat/convertThings.cpp | #include "stdafx.h"
#if BUILD_BOTH_VERSIONS
#include "../API/iContext.cl.h"
#include "convertThings.h"
using namespace Whisper;
sFullParams makeNewParams( const whisper_full_params& wfp )
{
assert( nullptr == wfp.encoder_begin_callback );
assert( nullptr == wfp.new_segment_callback );
sFullParams res;
memset( &re... | 7,199 | C++ | .cpp | 204 | 32.387255 | 108 | 0.714901 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,616 | AppState.cpp | Const-me_Whisper/Examples/WhisperDesktop/AppState.cpp | #include "stdafx.h"
#include "AppState.h"
#include "Utils/miscUtils.h"
#include <commctrl.h>
#pragma comment(lib, "Comctl32.lib")
#include "CircleIndicator.h"
namespace
{
static const HKEY regKeyRoot = HKEY_CURRENT_USER;
const LPCTSTR regKey = LR"(SOFTWARE\const.me\WhisperDesktop)";
const LPCTSTR regValPath = L"mod... | 4,873 | C++ | .cpp | 193 | 23.150259 | 91 | 0.730009 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,617 | CaptureDlg.cpp | Const-me_Whisper/Examples/WhisperDesktop/CaptureDlg.cpp | #include "stdafx.h"
#include "CaptureDlg.h"
HRESULT CaptureDlg::show()
{
auto res = DoModal( nullptr );
if( res == -1 )
return HRESULT_FROM_WIN32( GetLastError() );
switch( res )
{
case IDC_BACK:
return SCREEN_MODEL;
case IDC_TRANSCRIBE:
return SCREEN_TRANSCRIBE;
}
return S_OK;
}
static const LPCTSTR re... | 13,694 | C++ | .cpp | 437 | 28.965675 | 143 | 0.728658 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,618 | CircleIndicator.cpp | Const-me_Whisper/Examples/WhisperDesktop/CircleIndicator.cpp | #include "stdafx.h"
#include "CircleIndicator.h"
#include <atltypes.h>
#include "AppState.h"
namespace
{
static const LPCTSTR windowClassName = L"CircleIndicator";
// Font with these symbols, shipped with Windows since forever:
// https://learn.microsoft.com/en-us/typography/font-list/segoe-ui-symbol
static const... | 2,828 | C++ | .cpp | 100 | 26.11 | 86 | 0.745562 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,619 | TranscribeDlg.cpp | Const-me_Whisper/Examples/WhisperDesktop/TranscribeDlg.cpp | #include "stdafx.h"
#include "TranscribeDlg.h"
#include "Utils/logger.h"
HRESULT TranscribeDlg::show()
{
auto res = DoModal( nullptr );
if( res == -1 )
return HRESULT_FROM_WIN32( GetLastError() );
switch( res )
{
case IDC_BACK:
return SCREEN_MODEL;
case IDC_CAPTURE:
return SCREEN_CAPTURE;
}
return S_OK;
... | 17,200 | C++ | .cpp | 536 | 29.811567 | 173 | 0.740334 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,620 | ModelAdvancedDlg.cpp | Const-me_Whisper/Examples/WhisperDesktop/ModelAdvancedDlg.cpp | #include "stdafx.h"
#include "ModelAdvancedDlg.h"
using Whisper::eGpuModelFlags;
static void __stdcall addGpu( const wchar_t* name, void* pv )
{
CComboBox& cb = *(CComboBox*)pv;
cb.AddString( name );
}
LRESULT ModelAdvancedDlg::onInitDialog( UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL& bHandled )
{
cbWave = ... | 2,452 | C++ | .cpp | 80 | 28.425 | 101 | 0.708705 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,621 | LoadModelDlg.cpp | Const-me_Whisper/Examples/WhisperDesktop/LoadModelDlg.cpp | #include "stdafx.h"
#include "LoadModelDlg.h"
#include "Utils/miscUtils.h"
#include "Utils/logger.h"
#include "ModelAdvancedDlg.h"
constexpr int progressMaxInteger = 1024 * 8;
HRESULT LoadModelDlg::show()
{
auto res = DoModal( nullptr );
if( res == -1 )
return HRESULT_FROM_WIN32( GetLastError() );
if( res == IDO... | 5,972 | C++ | .cpp | 205 | 26.892683 | 144 | 0.729716 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,622 | WhisperDesktop.cpp | Const-me_Whisper/Examples/WhisperDesktop/WhisperDesktop.cpp | #include "stdafx.h"
#include "AppState.h"
#include "Utils/miscUtils.h"
#include "LoadModelDlg.h"
#include "TranscribeDlg.h"
#include "CaptureDlg.h"
static HRESULT dialogLoadModel( AppState& appState )
{
LoadModelDlg loadDialog{ appState };
HRESULT hr = loadDialog.show();
if( FAILED( hr ) )
{
reportFatalError( "E... | 1,352 | C++ | .cpp | 56 | 22.178571 | 102 | 0.729457 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,623 | miscUtils.cpp | Const-me_Whisper/Examples/WhisperDesktop/Utils/miscUtils.cpp | #include "stdafx.h"
#include "miscUtils.h"
namespace
{
wchar_t* formatMessage( HRESULT hr )
{
wchar_t* err;
if( FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
hr,
MAKELANGID( LANG_NEUTRAL, SUBLANG_DEFAULT ),
(LPTSTR)&err,
0,
NULL ) )
return err;
return nu... | 5,890 | C++ | .cpp | 219 | 24.716895 | 138 | 0.72017 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,624 | PendingState.cpp | Const-me_Whisper/Examples/WhisperDesktop/Utils/PendingState.cpp | #include "stdafx.h"
#include "PendingState.h"
void PendingState::initialize( std::initializer_list<HWND> editors, std::initializer_list<HWND> pending )
{
editorsWindows = editors;
wasEnabled.resize( editorsWindows.size() );
pendingWindows = pending;
}
void PendingState::setPending( bool nowPending )
{
if( nowPend... | 853 | C++ | .cpp | 37 | 20.324324 | 105 | 0.663391 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,625 | logger.cpp | Const-me_Whisper/Examples/WhisperDesktop/Utils/logger.cpp | #include "stdafx.h"
#include "logger.h"
#include "miscUtils.h"
namespace
{
using namespace Whisper;
// Terminal color map. 10 colors grouped in ranges [0.0, 0.1, ..., 0.9]
// Lowest is red, middle is yellow, highest is green.
static const std::array<const char*, 10> k_colors =
{
"\033[38;5;196m", "\033[38;5;20... | 1,955 | C++ | .cpp | 64 | 28.046875 | 97 | 0.647715 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,626 | TranslateCheckbox.cpp | Const-me_Whisper/Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp | #include "stdafx.h"
#include "TranslateCheckbox.h"
static const LPCTSTR regValTranslate = L"translate";
void TranslateCheckbox::initialize( HWND owner, int idc, AppState& state )
{
m_hWnd = GetDlgItem( owner, idc );
assert( nullptr != m_hWnd );
if( state.boolLoad( regValTranslate ) )
::SendMessage( m_hWnd, BM_S... | 628 | C++ | .cpp | 20 | 29.75 | 74 | 0.735099 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,627 | DebugConsole.cpp | Const-me_Whisper/Examples/WhisperDesktop/Utils/DebugConsole.cpp | // https://github.com/Const-me/vis_avs_dx/blob/master/avs_dx/DxVisuals/Interop/ConsoleLogger.cpp
#include "stdafx.h"
#include "DebugConsole.h"
#include "miscUtils.h"
#include "../AppState.h"
#include "logger.h"
#include <string>
namespace
{
using Whisper::eLogLevel;
constexpr uint16_t defaultAttributes = FOREGROUND... | 6,883 | C++ | .cpp | 243 | 26.156379 | 144 | 0.736579 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,628 | LanguageDropdown.cpp | Const-me_Whisper/Examples/WhisperDesktop/Utils/LanguageDropdown.cpp | #include "stdafx.h"
#include "LanguageDropdown.h"
#include "miscUtils.h"
namespace
{
inline wchar_t toUpper( wchar_t c )
{
size_t st = (uint16_t)c;
st = reinterpret_cast<size_t>( CharUpperW( reinterpret_cast<LPWSTR>( st ) ) );
return (wchar_t)(uint16_t)st;
}
void makeTitleCase( CString& s )
{
bool cap = ... | 1,886 | C++ | .cpp | 75 | 22.746667 | 80 | 0.657778 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,629 | main.cpp | Const-me_Whisper/Examples/OldMain/main.cpp | #include "whisper.h"
// third-party utilities
// use your favorite implementations
#define DR_WAV_IMPLEMENTATION
#include "dr_wav.h"
#include <cmath>
#include <fstream>
#include <cstdio>
#include <string>
#include <thread>
#include <vector>
// Terminal color map. 10 colors grouped in ranges [0.0, 0.1, ..., 0.9]
// L... | 28,768 | C++ | .cpp | 555 | 40.742342 | 211 | 0.505946 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,630 | Logger.cpp | Const-me_Whisper/Examples/OldMain/Utils/Logger.cpp | #include <stdint.h>
#include <vector>
#include <cstdarg>
#include "Logger.h"
namespace
{
void logMessage( const char* lvl, const char8_t* pszFormat, std::va_list va )
{
fprintf( stderr, "%s: ", lvl );
vfprintf( stderr, (const char*)pszFormat, va );
fprintf( stderr, "\n" );
}
}
#define LOG_MESSAGE_IMPL( lvl )... | 822 | C++ | .cpp | 34 | 22.529412 | 78 | 0.616858 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,631 | miscUtils.cpp | Const-me_Whisper/Examples/main/miscUtils.cpp | #include "miscUtils.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
std::string utf8( const std::wstring& utf16 )
{
int count = WideCharToMultiByte( CP_UTF8, 0, utf16.c_str(), (int)utf16.length(), nullptr, 0, nullptr, nullptr );
std::string str( count, 0 );
WideCharToMultiByte( CP_UTF8, 0, utf16.c_str(), -1, &s... | 1,197 | C++ | .cpp | 44 | 25.022727 | 113 | 0.671304 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,632 | main.cpp | Const-me_Whisper/Examples/main/main.cpp | #include "params.h"
#include "../../Whisper/API/iContext.cl.h"
#include "../../Whisper/API/iMediaFoundation.cl.h"
#include "../../ComLightLib/comLightClient.h"
#include "miscUtils.h"
#include <array>
#include <atomic>
#include "textWriter.h"
using namespace Whisper;
#define STREAM_AUDIO 1
static HRESULT loadWhisperMo... | 10,351 | C++ | .cpp | 307 | 30.283388 | 160 | 0.672767 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,633 | textWriter.cpp | Const-me_Whisper/Examples/main/textWriter.cpp | #include "textWriter.h"
#include "../../ComLightLib/comLightClient.h"
#include <array>
#define WIN32_LEAN_AND_MEAN
#include <pathcch.h>
#include <atlstr.h>
#include <atlfile.h>
#pragma comment(lib, "Pathcch.lib")
namespace
{
HRESULT replaceExtension( CString& path, LPCTSTR inputPath, LPCTSTR ext )
{
path = inputPa... | 4,877 | C++ | .cpp | 173 | 24.815029 | 93 | 0.661749 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,634 | params.cpp | Const-me_Whisper/Examples/main/params.cpp | #include "params.h"
#include <algorithm>
#include <thread>
#include "miscUtils.h"
#include "../../Whisper/API/iContext.cl.h"
whisper_params::whisper_params()
{
#ifdef _DEBUG
n_threads = 2;
#else
n_threads = std::min( 4u, std::thread::hardware_concurrency() );
#endif
}
namespace
{
const char* cstr( bool b )
{
r... | 6,205 | C++ | .cpp | 117 | 50.692308 | 129 | 0.583155 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,638 | comLightCommon.h | Const-me_Whisper/ComLightLib/comLightCommon.h | #pragma once
#include "hresult.h"
#ifdef _MSC_VER
#include <guiddef.h>
#else
#include "pal/guiddef.h"
using LPCTSTR = const char*;
#endif
#include "unknwn.h" | 159 | C++ | .h | 9 | 16.555556 | 28 | 0.758389 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,641 | comLightServer.h | Const-me_Whisper/ComLightLib/comLightServer.h | #pragma once
#include "comLightCommon.h"
#include "client/CComPtr.hpp"
#include "server/ObjectRoot.hpp"
#include "server/interfaceMap.h"
#include "server/Object.hpp"
#include "server/freeThreadedMarshaller.h"
#ifdef _MSC_VER
// On Windows, it's controlled by library.def module definition file. There's __declspec(dlle... | 480 | C++ | .h | 13 | 35.846154 | 143 | 0.781116 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,644 | hresult.h | Const-me_Whisper/ComLightLib/pal/hresult.h | #pragma once
#include <stdint.h>
using HRESULT = int32_t;
#define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc)
#define SEVERITY_ERROR 1
#define FACILITY_CONTROL 10
inline constexpr HRESULT MAKE_SCODE( uint32_t sev, uint32_t fac, uint32_t code )
{
return (HRESULT)( ( (uint32_t)( sev ) << 31 ) | ( (unsigned long)(... | 5,162 | C++ | .h | 85 | 59.517647 | 114 | 0.633149 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,652 | CommandLineArgs.h | Const-me_Whisper/Tools/compareTraces/CommandLineArgs.h | #pragma once
struct CommandLineArgs
{
int64_t printDiff = -1;
std::array<CString, 2> inputs;
bool parse( int argc, wchar_t* argv[] );
}; | 141 | C++ | .h | 7 | 18.571429 | 41 | 0.714286 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,653 | TraceReader.h | Const-me_Whisper/Tools/compareTraces/TraceReader.h | #pragma once
#include "../../Whisper/Utils/Trace/TraceStructures.h"
#include <atlstr.h>
#include <atlfile.h>
namespace Tracing
{
class TraceReader
{
const uint8_t* payloadPointer = nullptr;
const sTraceItem* items = nullptr;
size_t countItems = 0;
size_t countStrings = 0;
const uint32_t* stringIndex = null... | 778 | C++ | .h | 29 | 24.241379 | 54 | 0.733871 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,654 | stdafx.h | Const-me_Whisper/Tools/compareTraces/stdafx.h | #pragma once
#include <stdint.h>
#include <assert.h>
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
#include <atlstr.h>
#include <d3d11.h>
#include <vector>
#include <array>
#include <emmintrin.h>
#include <smmintrin.h>
#define CHECK( hr ) { const HRESULT __hr = ( hr ); if( FAILED( __hr ) ) return... | 898 | C++ | .h | 33 | 25.878788 | 86 | 0.67986 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,655 | compare.h | Const-me_Whisper/Tools/compareTraces/compare.h | #pragma once
#include "CommandLineArgs.h"
HRESULT compareTraces( const CommandLineArgs& arguments ); | 101 | C++ | .h | 3 | 32.666667 | 58 | 0.836735 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,656 | stdafx.h | Const-me_Whisper/Whisper/stdafx.h | #pragma once
#define _USE_MATH_DEFINES
#include <stdint.h>
#include <assert.h>
#include <array>
#include <vector>
#include <algorithm>
#include <emmintrin.h> // SSE 2
#include <smmintrin.h> // SSE 4.1
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
// Setup Windows SDK to only enable features available since Windows 8.0
... | 1,967 | C++ | .h | 39 | 49.230769 | 171 | 0.8 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,657 | modelFactory.h | Const-me_Whisper/Whisper/modelFactory.h | #pragma once
#include "API/sLoadModelCallbacks.h"
#include "API/sModelSetup.h"
namespace Whisper
{
struct iModel;
HRESULT __stdcall loadGpuModel( const wchar_t* path, const sModelSetup& setup, const sLoadModelCallbacks* callbacks, iModel** pp );
HRESULT __stdcall loadReferenceCpuModel( const wchar_t* path, iModel... | 330 | C++ | .h | 9 | 35.111111 | 132 | 0.786834 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,658 | downloadBuffer.h | Const-me_Whisper/Whisper/D3D/downloadBuffer.h | #pragma once
namespace DirectCompute
{
// Download a buffer from VRAM into std::vector
// The function is relatively expensive, creates a temporary staging buffer on each call, and only used to test things.
template<class E>
HRESULT downloadBuffer( ID3D11ShaderResourceView* srv, std::vector<E>& vec );
} | 309 | C++ | .h | 8 | 37.125 | 120 | 0.790698 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,659 | createBuffer.h | Const-me_Whisper/Whisper/D3D/createBuffer.h | #pragma once
#include "enums.h"
#include "device.h"
namespace DirectCompute
{
HRESULT createBuffer( eBufferUse use, size_t totalBytes, ID3D11Buffer** ppGpuBuffer, const void* rsi, ID3D11Buffer** ppStagingBuffer, bool shared = false );
} | 238 | C++ | .h | 7 | 32.857143 | 157 | 0.792208 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,660 | createDevice.h | Const-me_Whisper/Whisper/D3D/createDevice.h | // Low-level functions to create and initialize D3D11 device
#pragma once
#include <string>
#include "sGpuInfo.h"
namespace DirectCompute
{
HRESULT createDevice( const std::wstring& adapter, ID3D11Device** dev, ID3D11DeviceContext** context );
HRESULT validateFlags( uint32_t flags );
HRESULT queryDeviceInfo( sGpu... | 531 | C++ | .h | 12 | 42.583333 | 104 | 0.794574 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,661 | MappedResource.h | Const-me_Whisper/Whisper/D3D/MappedResource.h | #pragma once
#include "device.h"
#include <assert.h>
namespace DirectCompute
{
class MappedResource
{
D3D11_MAPPED_SUBRESOURCE mapped;
ID3D11Resource* resource;
public:
MappedResource();
HRESULT map( ID3D11Resource* res, bool reading );
~MappedResource();
void* data() const
{
assert( nullptr != ma... | 367 | C++ | .h | 20 | 16 | 51 | 0.736994 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,662 | sGpuInfo.h | Const-me_Whisper/Whisper/D3D/sGpuInfo.h | #pragma once
#include <stdint.h>
namespace DirectCompute
{
// DXGI_ADAPTER_DESC.VendorId magic numbers; they come from that database: https://pcisig.com/membership/member-companies
enum struct eGpuVendor : uint16_t
{
AMD = 0x1002,
NVidia = 0x10de,
Intel = 0x8086,
VMWare = 0x15ad,
};
enum struct eGpuEffec... | 1,351 | C++ | .h | 45 | 27.288889 | 122 | 0.721752 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,663 | device.h | Const-me_Whisper/Whisper/D3D/device.h | #pragma once
#include <atlcomcli.h>
#include <string>
#include "sGpuInfo.h"
namespace DirectCompute
{
ID3D11Device* device();
ID3D11DeviceContext* context();
const sGpuInfo& gpuInfo();
inline void csSetCB( ID3D11Buffer* cb )
{
context()->CSSetConstantBuffers( 0, 1, &cb );
}
__m128i bufferMemoryUsage( ID3D11... | 403 | C++ | .h | 16 | 23.375 | 62 | 0.768229 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,664 | enums.h | Const-me_Whisper/Whisper/D3D/enums.h | #pragma once
#include <stdint.h>
#include <assert.h>
namespace DirectCompute
{
enum struct eDataType : uint8_t
{
FP16,
FP32,
U32,
};
inline size_t elementSize( eDataType dt )
{
assert( dt == eDataType::FP16 || dt == eDataType::FP32 || dt == eDataType::U32 );
return ( dt == eDataType::FP16 ) ? 2 : 4;
... | 776 | C++ | .h | 29 | 24.37931 | 128 | 0.7214 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,665 | Binder.h | Const-me_Whisper/Whisper/D3D/Binder.h | #pragma once
#include "device.h"
namespace DirectCompute
{
class Binder
{
uint8_t maxSrv = 0;
uint8_t maxUav = 0;
public:
Binder() = default;
Binder( const Binder& ) = delete;
void bind( ID3D11ShaderResourceView* srv0, ID3D11UnorderedAccessView* uav0 );
void bind( ID3D11ShaderResourceView* srv0, ID3D1... | 574 | C++ | .h | 18 | 29.555556 | 125 | 0.770758 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,666 | shaderNames.h | Const-me_Whisper/Whisper/D3D/shaderNames.h | // This header is generated by a tool
#pragma once
#include <stdint.h>
namespace DirectCompute
{
enum struct eComputeShader: uint16_t
{
add = 0,
addInPlace = 1,
addRepeat = 2,
addRepeatEx = 3,
addRepeatGelu = 4,
addRepeatScale = 5,
addRows = 6,
convolutionMain = 7,
convolutionMain2 = 8,
convoluti... | 1,079 | C++ | .h | 51 | 18.45098 | 52 | 0.721519 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,667 | shaders.h | Const-me_Whisper/Whisper/D3D/shaders.h | #pragma once
#include "shaderNames.h"
namespace DirectCompute
{
HRESULT createComputeShaders( std::vector<CComPtr<ID3D11ComputeShader>>& shaders );
void bindShader( eComputeShader shader );
} | 195 | C++ | .h | 7 | 26.428571 | 84 | 0.823529 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,668 | listGPUs.h | Const-me_Whisper/Whisper/D3D/listGPUs.h | #pragma once
#include <API/iContext.cl.h>
namespace DirectCompute
{
CComPtr<IDXGIAdapter1> selectAdapter( const std::wstring& requestedName );
} | 146 | C++ | .h | 6 | 23.166667 | 75 | 0.814286 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,670 | renderDoc.h | Const-me_Whisper/Whisper/D3D/RenderDoc/renderDoc.h | #pragma once
namespace DirectCompute
{
bool initializeRenderDoc();
class CaptureRaii
{
bool capturing;
public:
CaptureRaii();
CaptureRaii( const CaptureRaii& ) = delete;
~CaptureRaii();
};
} | 205 | C++ | .h | 13 | 13.692308 | 45 | 0.759162 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,671 | HybridLoader.h | Const-me_Whisper/Whisper/CPU/HybridLoader.h | #pragma once
#include "DecoderTensors.h"
#include <atlstr.h>
#include <atlcoll.h>
#include "../../ComLightLib/streams.h"
namespace CpuCompute
{
__interface iLoaderProgressSink
{
HRESULT gotBytes( int64_t cb );
};
class HybridLoader
{
DecoderTensors& destination;
CAtlMap<CStringA, Tensor*> map;
size_t buf... | 858 | C++ | .h | 30 | 26.033333 | 155 | 0.745742 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,672 | MlContext.h | Const-me_Whisper/Whisper/CPU/MlContext.h | #pragma once
#include "Tensor.h"
#include "ParallelForRunner.h"
namespace CpuCompute
{
class MlContext
{
ParallelForRunner pfor;
iMemoryAllocator* allocator = nullptr;
public:
MlContext( int threads );
MlContext( const MlContext& ) = delete;
~MlContext() = default;
HRESULT setThreadsCount( int threads... | 2,044 | C++ | .h | 51 | 36.921569 | 116 | 0.7077 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,673 | KvTensors.h | Const-me_Whisper/Whisper/CPU/KvTensors.h | #pragma once
#include "Tensor.h"
#include "LargeBuffer.h"
#include "../Whisper/sModelParams.h"
namespace CpuCompute
{
class KvTensors
{
uint16_t* keys = nullptr;
uint16_t* values = nullptr;
uint32_t size = 0;
CpuCompute::LargeBuffer memory;
public:
// Create these two large tensors, FP16 precision
HRE... | 813 | C++ | .h | 31 | 23.419355 | 66 | 0.696658 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,674 | Tensor.h | Const-me_Whisper/Whisper/CPU/Tensor.h | #pragma once
#include "../D3D/enums.h"
#include "../ML/TensorShape.h"
// 1 = new tensors can be allocated with `nullptr` iMemoryAllocator, by allocating memory internally and counting these references
// 0 = memory allocator is mandatory, create() methods will fail with E_POINTER if the allocator is `nullptr`
#define T... | 3,819 | C++ | .h | 122 | 28.598361 | 130 | 0.721543 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,675 | simdUtils.h | Const-me_Whisper/Whisper/CPU/simdUtils.h | #pragma once
#include <immintrin.h>
void addF16to32( float* rdi, const uint16_t* a, const uint16_t* b, size_t length );
void addF16to32( float* rdi, const uint16_t* a, const float* b, size_t length );
class AlignedSpan
{
float* pointer;
public:
AlignedSpan( void* data )
{
size_t i = (size_t)data;
constexpr si... | 2,761 | C++ | .h | 64 | 41.375 | 130 | 0.725 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,676 | DecoderTensors.h | Const-me_Whisper/Whisper/CPU/DecoderTensors.h | #pragma once
#include <vector>
#include "Tensor.h"
#include "LargeBuffer.h"
#if TENSOR_GGML_COMPAT
#include "../source/ggml.h"
#endif
namespace CpuCompute
{
// A set of tensors for one decoder's layer
struct LayerDecoder
{
// decoder.blocks.*.attn_ln
TensorPair attnLn0;
// decoder.blocks.*.attn.out
TensorPa... | 2,759 | C++ | .h | 108 | 22.731481 | 68 | 0.713199 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,677 | mulMat.kernel.hpp | Const-me_Whisper/Whisper/CPU/mulMat.kernel.hpp | #pragma once
#include <stdint.h>
#include <immintrin.h>
#include "simdUtils.h"
template<uint8_t panelHeightRegs, uint8_t tileWidthFloats>
struct ResultTile
{
static constexpr size_t totalRegs = (size_t)(tileWidthFloats)*panelHeightRegs;
std::array<__m256, totalRegs> arr;
template<size_t idx>
__forceinline void fm... | 21,534 | C++ | .h | 706 | 27.771955 | 133 | 0.588563 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,678 | mulMat.h | Const-me_Whisper/Whisper/CPU/mulMat.h | #pragma once
#include "ParallelForRunner.h"
#include "Tensor.h"
namespace CpuCompute
{
HRESULT mulMat( Tensor& result, const Tensor& a, const Tensor& b, ParallelForRunner& pfor );
}
#if TENSOR_GGML_COMPAT
#include "../source/ggml.h"
inline HRESULT mulMat( ggml_tensor* result, const ggml_tensor* a, const ggml_tensor*... | 474 | C++ | .h | 15 | 30.333333 | 125 | 0.744541 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,679 | mulMatImpl.h | Const-me_Whisper/Whisper/CPU/mulMatImpl.h | #pragma once
// Matrix*matrix multiplication is the most expensive algorithm in the model, by far.
// For this reason, the code in this source file, and in the mulMat.kernel.hpp header, is optimized for performance. Readability suffers.
// The implementation is inspired by following two articles:
// https://gist.github... | 4,480 | C++ | .h | 87 | 48.597701 | 140 | 0.7552 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,680 | LargeBuffer.h | Const-me_Whisper/Whisper/CPU/LargeBuffer.h | #pragma once
namespace CpuCompute
{
// A large memory buffer allocated with VirtualAlloc kernel API, bypassing the heap.
class LargeBuffer
{
void* pv = nullptr;
public:
LargeBuffer() = default;
LargeBuffer( const LargeBuffer& ) = delete;
LargeBuffer( LargeBuffer&& that ) noexcept
{
pv = that.pv;
th... | 1,052 | C++ | .h | 39 | 24.051282 | 85 | 0.710605 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,681 | ParallelForRunner.h | Const-me_Whisper/Whisper/CPU/ParallelForRunner.h | #pragma once
#include "LargeBuffer.h"
namespace CpuCompute
{
// Callback interface for the parallel `for`
__interface iComputeRange
{
// The implementation calls this method on multiple thread pool threads in parallel, and aggregates status codes.
HRESULT __stdcall compute( size_t begin, size_t end ) const;
};... | 1,496 | C++ | .h | 41 | 33.682927 | 115 | 0.755017 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,682 | mulMatUtils.hpp | Const-me_Whisper/Whisper/CPU/mulMatUtils.hpp | #pragma once
#include <immintrin.h>
#include <stdint.h>
#include <assert.h>
__forceinline __m128i f16Load( const uint16_t* rsi )
{
return _mm_loadu_si128( ( const __m128i* )rsi );
}
constexpr size_t maskAlign8 = ~(size_t)7;
__forceinline void transpose8( uint16_t* rdi, size_t w, const uint16_t* rsi, size_t sourceSt... | 11,231 | C++ | .h | 271 | 38.767528 | 132 | 0.591803 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,683 | BufferAllocator.h | Const-me_Whisper/Whisper/CPU/BufferAllocator.h | #pragma once
#include "LargeBuffer.h"
#include "Tensor.h"
namespace CpuCompute
{
#ifdef NDEBUG
inline void dbgMarkUninitializedMemory( void* pv, size_t cb ) { }
inline void dbgMarkFreedMemory( void* pv, size_t cb ) { }
#else
void dbgMarkUninitializedMemory( void* pv, size_t cb );
void dbgMarkFreedMemory( void* pv,... | 1,727 | C++ | .h | 52 | 30.538462 | 152 | 0.748197 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,684 | ModelLoader.h | Const-me_Whisper/Whisper/Whisper/ModelLoader.h | #pragma once
#include "ModelBuffers.h"
#include <map>
namespace DirectCompute
{
struct ModelLoader
{
ModelLoader( int encoderLayers, int decoderLayers );
void add( const ggml_tensor* ggml, Tensor& gpu );
void add( const ggml_tensor* w, const ggml_tensor* b, TensorPair& gpu )
{
add( w, gpu.w );
add( b... | 517 | C++ | .h | 21 | 21.952381 | 73 | 0.705521 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,685 | loaderUtils.h | Const-me_Whisper/Whisper/Whisper/loaderUtils.h | #pragma once
#include "../../ComLightLib/streams.h"
namespace Whisper
{
inline HRESULT readBytes( ComLight::iReadStream* stm, void* rdi, size_t cb )
{
if( cb > INT_MAX )
return DISP_E_OVERFLOW;
if( cb == 0 )
return S_FALSE;
int n;
CHECK( stm->read( rdi, (int)cb, n ) );
if( n != (int)cb )
return E_... | 486 | C++ | .h | 22 | 19.681818 | 77 | 0.656587 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,686 | TranscribeResult.h | Const-me_Whisper/Whisper/Whisper/TranscribeResult.h | #pragma once
#include "../API/iTranscribeResult.cl.h"
#include "../ComLightLib/comLightServer.h"
namespace Whisper
{
class TranscribeResult : public ComLight::ObjectRoot<iTranscribeResult>
{
HRESULT COMLIGHTCALL getSize( sTranscribeLength& rdi ) const noexcept override final
{
rdi.countSegments = (uint32_t)se... | 1,255 | C++ | .h | 41 | 27.658537 | 113 | 0.744224 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,687 | Spectrogram.h | Const-me_Whisper/Whisper/Whisper/Spectrogram.h | #pragma once
#include "WhisperModel.h"
#include "iSpectrogram.h"
#include "audioConstants.h"
namespace Whisper
{
struct iAudioBuffer;
// This implementation of iSpectrogram interface converts complete audio into MEL spectrogram
// Used for unbuffered audio, and capture: iContext.runFull and runCapture methods.
cl... | 1,252 | C++ | .h | 39 | 29.307692 | 115 | 0.742952 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,688 | ModelBuffers.h | Const-me_Whisper/Whisper/Whisper/ModelBuffers.h | #pragma once
#include "../ML/Tensor.h"
#include <vector>
namespace DirectCompute
{
// A pair of tensors containing weights and biases; apparently, both tensors are of the same shape.
struct TensorPair
{
Tensor w, b;
__m128i getMemoryUse() const;
};
// A set of tensors for one encoder's layer
struct LayerEn... | 2,544 | C++ | .h | 103 | 21.980583 | 100 | 0.739811 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,689 | DecoderInputBuffers.h | Const-me_Whisper/Whisper/Whisper/DecoderInputBuffers.h | #pragma once
#include "../ML/Tensor.h"
namespace DirectCompute
{
// A dynamic buffer
class DecoderInputBuffers
{
CComPtr<ID3D11Buffer> embd;
uint32_t m_size = 0;
uint32_t m_capacity = 0;
public:
void resize( uint32_t size );
// Create 1D tensor with R32_UINT elements, upload the source data
Tensor e... | 544 | C++ | .h | 24 | 19.916667 | 68 | 0.692607 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,690 | WhisperModel.h | Const-me_Whisper/Whisper/Whisper/WhisperModel.h | #pragma once
#include <memory>
#include "Vocabulary.h"
#include "ModelBuffers.h"
#include "../../ComLightLib/streams.h"
#include "../CPU/DecoderTensors.h"
#include "../API/sLoadModelCallbacks.h"
#include "sModelParams.h"
namespace Whisper
{
struct Filters
{
uint32_t n_mel;
uint32_t n_fft;
std::vector<float> da... | 1,719 | C++ | .h | 51 | 31.176471 | 107 | 0.751057 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,691 | ContextImpl.h | Const-me_Whisper/Whisper/Whisper/ContextImpl.h | #pragma once
#include "../API/iContext.cl.h"
#include "../ComLightLib/comLightServer.h"
#include "WhisperContext.h"
#include "Spectrogram.h"
#include "TranscribeResult.h"
#include "sTokenData.h"
#include "../ML/Device.h"
namespace Whisper
{
class ContextImpl : public ComLight::ObjectRoot<iContext>
{
const DirectCo... | 3,022 | C++ | .h | 66 | 42.893939 | 143 | 0.782121 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,692 | audioConstants.h | Const-me_Whisper/Whisper/Whisper/audioConstants.h | #pragma once
#include <stdint.h>
namespace Whisper
{
// WHISPER_SAMPLE_RATE, 16 kHz
constexpr uint32_t SAMPLE_RATE = 16000;
// WHISPER_N_FFT, 25 milliseconds
constexpr uint32_t FFT_SIZE = 400;
// WHISPER_HOP_LENGTH, 10 milliseconds
constexpr uint32_t FFT_STEP = 160;
// WHISPER_N_MEL
constexpr uint32_t N_MEL = ... | 325 | C++ | .h | 13 | 23.384615 | 40 | 0.746795 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,693 | MelInputTensor.h | Const-me_Whisper/Whisper/Whisper/MelInputTensor.h | #pragma once
#include "../ML/TensorEx.h"
#include "sEncodeParams.h"
#include "iSpectrogram.h"
namespace DirectCompute
{
// Input tensor in VRAM, in a dynamic FP32 buffer
class MelInputTensor : public TensorEx
{
uint32_t capacity;
public:
HRESULT create( Whisper::iSpectrogram& spectrogram, const sEncodeParams... | 428 | C++ | .h | 18 | 21.611111 | 87 | 0.749386 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,694 | sTokenData.h | Const-me_Whisper/Whisper/Whisper/sTokenData.h | #pragma once
#include <stdint.h>
namespace Whisper
{
using whisper_token = int;
struct sTokenData
{
whisper_token id; // token id
whisper_token tid; // forced timestamp token id
float p; // probability of the token
float pt; // probability of the timestamp token
float ptsum; // ... | 613 | C++ | .h | 19 | 29.842105 | 68 | 0.673435 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,695 | DecoderResultBuffer.h | Const-me_Whisper/Whisper/Whisper/DecoderResultBuffer.h | #pragma once
#include "../ML/Tensor.h"
namespace DirectCompute
{
class DecoderResultBuffer
{
CComPtr<ID3D11Buffer> buffer;
uint32_t m_size = 0;
uint32_t m_capacity = 0;
public:
void copyFromVram( const Tensor& rsi );
void copyToVector( std::vector<float>& vec ) const;
uint32_t size() const
{
re... | 437 | C++ | .h | 23 | 16.304348 | 53 | 0.704156 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,696 | sEncodeParams.h | Const-me_Whisper/Whisper/Whisper/sEncodeParams.h | #pragma once
#include <stdint.h>
namespace DirectCompute
{
struct sEncodeParams
{
uint32_t n_ctx, n_mels, mel_offset;
uint32_t layersCount, n_state, n_head;
uint32_t n_audio_ctx, n_text_state, n_text_layer, n_text_ctx;
};
struct sDecodeParams
{
uint32_t n_state, n_head;
uint32_t n_ctx, n_past, M;
uin... | 365 | C++ | .h | 18 | 18.111111 | 63 | 0.713873 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,697 | sModelParams.h | Const-me_Whisper/Whisper/Whisper/sModelParams.h | #pragma once
namespace Whisper
{
// default hparams (Whisper tiny)
struct sModelParams
{
int n_vocab = 51864;
int n_audio_ctx = 1500;
int n_audio_state = 384;
int n_audio_head = 6;
int n_audio_layer = 4;
int n_text_ctx = 448;
int n_text_state = 384;
int n_text_head = 6;
int n_text_layer = 4;
int ... | 353 | C++ | .h | 19 | 16.263158 | 34 | 0.653731 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,698 | melSpectrogram.h | Const-me_Whisper/Whisper/Whisper/melSpectrogram.h | #pragma once
#include "audioConstants.h"
#include "WhisperModel.h"
#include <memory>
namespace Whisper
{
class HanningWindow
{
std::array<float, FFT_SIZE> hann;
public:
HanningWindow();
float operator[]( size_t i ) const
{
return hann[ i ];
}
};
extern const HanningWindow s_hanning;
class Spectro... | 695 | C++ | .h | 28 | 22.428571 | 86 | 0.731118 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,699 | WhisperContext.h | Const-me_Whisper/Whisper/Whisper/WhisperContext.h | #pragma once
#include "../ML/MlContext.h"
#include "MelInputTensor.h"
#include "KeyValueBuffers.h"
#include "sEncodeParams.h"
#include "DecoderInputBuffers.h"
#include "DecoderResultBuffer.h"
#include "../ML/TensorsArena.h"
#include "iSpectrogram.h"
#include "../Hybrid/HybridContext.h"
#include <memory>
#include "Whisp... | 3,627 | C++ | .h | 113 | 28.99115 | 127 | 0.739914 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,700 | ModelImpl.h | Const-me_Whisper/Whisper/Whisper/ModelImpl.h | #pragma once
#include "../API/iContext.cl.h"
#include "../ComLightLib/comLightServer.h"
#include "WhisperModel.h"
#include "../ComLightLib/streams.h"
#include "../ML/Device.h"
namespace Whisper
{
using ComLight::iReadStream;
class ModelImpl : public ComLight::ObjectRoot<iModel>
{
DirectCompute::Device device;
... | 1,608 | C++ | .h | 52 | 27.865385 | 99 | 0.737047 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,701 | KeyValueBuffers.h | Const-me_Whisper/Whisper/Whisper/KeyValueBuffers.h | #pragma once
#include "../ML/Tensor.h"
namespace DirectCompute
{
// FP16 buffer for self-attention and cross-attention layers
class AttentionBuffer
{
CComPtr<ID3D11Buffer> buffer;
uint32_t m_size = 0;
public:
// Create buffer for the specified count of elements
void resize( uint32_t size );
// Create a... | 1,001 | C++ | .h | 42 | 20.809524 | 64 | 0.694093 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,702 | MelStreamer.h | Const-me_Whisper/Whisper/Whisper/MelStreamer.h | #pragma once
#include <deque>
#include "../MF/PcmReader.h"
#include "melSpectrogram.h"
#include "iSpectrogram.h"
#include <atlbase.h>
#include "../Utils/parallelFor.h"
#include "../Utils/ProfileCollection.h"
#include "../API/iMediaFoundation.cl.h"
namespace Whisper
{
// Base class for both single- and multi-threaded ... | 3,745 | C++ | .h | 88 | 39.784091 | 130 | 0.772128 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,703 | voiceActivityDetection.h | Const-me_Whisper/Whisper/Whisper/voiceActivityDetection.h | #pragma once
#include <complex>
#include <memory>
#include "audioConstants.h"
namespace Whisper
{
class VAD
{
using cplx = std::complex<float>;
std::unique_ptr<cplx[]> fft_signal;
struct Feature
{
float energy;
float F;
float SFM;
};
const Feature primThresh;
static Feature defaultPrimaryThre... | 1,108 | C++ | .h | 43 | 22.744186 | 79 | 0.727962 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,704 | Vocabulary.h | Const-me_Whisper/Whisper/Whisper/Vocabulary.h | #pragma once
#include "../../ComLightLib/streams.h"
#include "../API/SpecialTokens.h"
#include "../Utils/MurmurHash3.h"
namespace Whisper
{
class Vocabulary
{
std::vector<const char*> tokens;
std::vector<char> stringData;
using THashMap = CAtlMap<const char*, int, StringPtrTraits>;
THashMap idFromToken;
v... | 1,449 | C++ | .h | 55 | 23.272727 | 77 | 0.68913 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,705 | Languages.h | Const-me_Whisper/Whisper/Whisper/Languages.h | #pragma once
#include "../../ComLightLib/comLightCommon.h"
namespace Whisper
{
int lookupLanguageId( const char* code );
int lookupLanguageId( uint32_t key );
const char* lookupLanguageName( const char* code );
int COMLIGHTCALL getLanguageId( const char* lang );
} | 271 | C++ | .h | 9 | 28.444444 | 52 | 0.773077 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,706 | iSpectrogram.h | Const-me_Whisper/Whisper/Whisper/iSpectrogram.h | #pragma once
#include "audioConstants.h"
namespace Whisper
{
struct alignas( 8 ) StereoSample
{
float left, right;
};
__interface iSpectrogram
{
// Make a buffer with length * N_MEL floats, starting at the specified offset
// An implementation of this interface may visualize the spectrogram, making pieces ... | 1,274 | C++ | .h | 38 | 30.842105 | 97 | 0.728234 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,707 | mfUtils.h | Const-me_Whisper/Whisper/MF/mfUtils.h | #pragma once
#include <stdint.h>
#include <mfidl.h>
#include <mfobjects.h>
#include <mfreadwrite.h>
#include "../Whisper/audioConstants.h"
namespace Whisper
{
HRESULT createMediaType( bool stereo, IMFMediaType** pp );
HRESULT getStreamDuration( IMFSourceReader* reader, int64_t& duration );
HRESULT validateCurrent... | 480 | C++ | .h | 14 | 32.714286 | 88 | 0.803456 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,708 | AudioBuffer.h | Const-me_Whisper/Whisper/MF/AudioBuffer.h | #pragma once
#include <vector>
namespace Whisper
{
struct AudioBuffer
{
std::vector<float> mono;
std::vector<float> stereo;
void appendMono( const float* rsi, size_t countFloats );
void appendDownmixedStereo( const float* rsi, size_t countFloats );
void appendStereo( const float* rsi, size_t countFloats )... | 1,001 | C++ | .h | 40 | 21.75 | 90 | 0.696335 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,709 | loadAudioFile.h | Const-me_Whisper/Whisper/MF/loadAudioFile.h | #pragma once
#include "../API/iMediaFoundation.cl.h"
namespace Whisper
{
HRESULT COMLIGHTCALL loadAudioFile( LPCTSTR path, bool stereo, iAudioBuffer** pp );
} | 160 | C++ | .h | 6 | 25.5 | 84 | 0.792208 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,710 | mfStartup.h | Const-me_Whisper/Whisper/MF/mfStartup.h | #pragma once
namespace Whisper
{
class MfStartupRaii
{
uint8_t successFlags = 0;
public:
MfStartupRaii() = default;
~MfStartupRaii();
MfStartupRaii( const MfStartupRaii& ) = delete;
HRESULT startup();
};
} | 221 | C++ | .h | 13 | 14.846154 | 49 | 0.73913 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,711 | PcmReader.h | Const-me_Whisper/Whisper/MF/PcmReader.h | #pragma once
#include "../Whisper/audioConstants.h"
#include <mfidl.h>
#include <mfreadwrite.h>
#include "AudioBuffer.h"
#include "../API/iMediaFoundation.cl.h"
namespace Whisper
{
// PCM buffer with 10 milliseconds of single-channel audio
struct PcmMonoChunk
{
std::array<float, FFT_STEP> mono;
};
// PCM buffer... | 2,143 | C++ | .h | 55 | 36.418182 | 112 | 0.766346 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,712 | AudioCapture.h | Const-me_Whisper/Whisper/MF/AudioCapture.h | #pragma once
#include "../API/MfStructs.h"
namespace Whisper
{
struct iAudioCapture;
struct iMediaFoundation;
HRESULT __stdcall captureDeviceList( pfnFoundCaptureDevices pfn, void* pv );
HRESULT __stdcall captureOpen( iMediaFoundation* owner, const wchar_t* endpoint, const sCaptureParams& captureParams, iAudioCa... | 344 | C++ | .h | 9 | 36.555556 | 149 | 0.807808 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,713 | iMediaFoundation.h | Const-me_Whisper/Whisper/API/iMediaFoundation.h | #pragma once
#include <stdint.h>
#include "MfStructs.h"
struct IMFSourceReader;
namespace Whisper
{
__interface __declspec( novtable, uuid( "013583aa-c9eb-42bc-83db-633c2c317051" ) ) iAudioBuffer : public IUnknown
{
uint32_t __stdcall countSamples() const;
const float* __stdcall getPcmMono() const;
const float... | 1,600 | C++ | .h | 34 | 44.705882 | 118 | 0.756566 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,714 | sFullParams.h | Const-me_Whisper/Whisper/API/sFullParams.h | #pragma once
#include <stdint.h>
#include <assert.h>
namespace Whisper
{
// Available sampling strategies
enum struct eSamplingStrategy : int
{
// Always select the most probable token
Greedy,
// TODO: not implemented yet!
BeamSearch,
};
using pfnNewSegment = HRESULT( __cdecl* )( iContext* ctx, uint32_t ... | 3,354 | C++ | .h | 120 | 24.933333 | 108 | 0.686061 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,715 | sLoadModelCallbacks.h | Const-me_Whisper/Whisper/API/sLoadModelCallbacks.h | #pragma once
namespace Whisper
{
using pfnLoadProgress = HRESULT( __stdcall* )( double val, void* pv ) noexcept;
// Return S_OK to continue, or S_FALSE to fail with "The operation was canceled by the user" status code
using pfnCancel = HRESULT( __stdcall* )( void* pv ) noexcept;
struct sLoadModelCallbacks
{
p... | 382 | C++ | .h | 13 | 27.307692 | 105 | 0.743869 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,716 | SpecialTokens.h | Const-me_Whisper/Whisper/API/SpecialTokens.h | #pragma once
namespace Whisper
{
struct SpecialTokens
{
// The end of a transcription, token_eot
int TranscriptionEnd;
// Start of a transcription, token_sot
int TranscriptionStart;
// Represents the previous word in the transcription. It is used to help the model predict the current word based on the cont... | 690 | C++ | .h | 23 | 27.434783 | 164 | 0.746246 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,717 | iTranscribeResult.cl.h | Const-me_Whisper/Whisper/API/iTranscribeResult.cl.h | #pragma once
#include "TranscribeStructs.h"
#include "../../ComLightLib/comLightCommon.h"
namespace Whisper
{
struct iTranscribeResult : public ComLight::IUnknown
{
DEFINE_INTERFACE_ID( "{2871a73f-5ce3-48f8-8779-6582ee11935e}" );
virtual HRESULT COMLIGHTCALL getSize( sTranscribeLength& rdi ) const = 0;
virtua... | 441 | C++ | .h | 13 | 32 | 75 | 0.775176 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,718 | TranscribeStructs.h | Const-me_Whisper/Whisper/API/TranscribeStructs.h | #pragma once
#include <stdint.h>
#include <assert.h>
namespace Whisper
{
// Timespan structure decomposed into fields
struct sTimeSpanFields
{
uint32_t days;
uint8_t hours, minutes, seconds;
uint32_t ticks;
sTimeSpanFields( uint64_t tt )
{
ticks = (uint32_t)( tt % 10'000'000 );
tt /= 10'000'000;
... | 3,175 | C++ | .h | 121 | 23.471074 | 166 | 0.709306 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,719 | iTranscribeResult.h | Const-me_Whisper/Whisper/API/iTranscribeResult.h | #pragma once
#include "TranscribeStructs.h"
namespace Whisper
{
__interface __declspec( novtable, uuid( "2871a73f-5ce3-48f8-8779-6582ee11935e" ) ) iTranscribeResult : public IUnknown
{
HRESULT __stdcall getSize( sTranscribeLength& rdi ) const;
const sSegment* __stdcall getSegments() const;
const sToken* __stdc... | 348 | C++ | .h | 11 | 29.818182 | 119 | 0.762611 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,720 | iContext.h | Const-me_Whisper/Whisper/API/iContext.h | #pragma once
#include "iTranscribeResult.h"
#include "SpecialTokens.h"
#include "loggerApi.h"
#include "sLanguageList.h"
#include "sLoadModelCallbacks.h"
#include "sModelSetup.h"
namespace Whisper
{
__interface iModel;
__interface iAudioBuffer;
__interface iAudioReader;
__interface iAudioCapture;
struct sCaptureC... | 2,527 | C++ | .h | 53 | 45.150943 | 129 | 0.769857 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,721 | iContext.cl.h | Const-me_Whisper/Whisper/API/iContext.cl.h | #pragma once
#include "../../ComLightLib/comLightCommon.h"
#include "iTranscribeResult.cl.h"
#include "SpecialTokens.h"
#include "loggerApi.h"
#include "sLanguageList.h"
#include "sLoadModelCallbacks.h"
#include "sModelSetup.h"
namespace Whisper
{
struct iModel;
struct iAudioBuffer;
struct iAudioReader;
struct iAu... | 2,837 | C++ | .h | 56 | 48.142857 | 140 | 0.787111 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.