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

KonstantinSource codes8c4603c

master
551 B23 linesraw
1#pragma once
2#include "comLightCommon.h"
3#include "client/CComPtr.hpp"
4#include "utils/typeTraits.hpp"
5
6namespace ComLight
7{
8	namespace details
9	{
10		template<typename T>
11		inline constexpr void** castDoublePointerToVoid( T** pp )
12		{
13			static_assert( pointersAssignable<IUnknown, T>(), "IID_PPV_ARGS macro should be used with IUnknown interfaces" );
14			return 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 )