yum-archive/TaSTT-Whisper
High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model
git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper
8c4603c
master
1#pragma once 2#include "comLightCommon.h" 3#include "client/CComPtr.hpp" 4#include "utils/typeTraits.hpp" 5 6namespace ComLight 7{ 8namespace details 9 { 10template < typename T > 11inline constexprvoid ** castDoublePointerToVoid (T ** pp ) 12 { 13static_assert (pointersAssignable < IUnknown ,T > (), "IID_PPV_ARGS macro should be used with IUnknown interfaces" ); 14return reinterpret_cast < void ** >( pp ); 15} 16} 17} 18 19#ifdef IID_PPV_ARGS 20#undef IID_PPV_ARGS 21#endif 22 23#define IID_PPV_ARGS ( pp ) decltype( **pp )::iid, ::ComLight::details::castDoublePointerToVoid( pp )