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 "device.h" 3#include <assert.h> 4 5namespace DirectCompute 6{ 7class MappedResource 8 { 9D3D11_MAPPED_SUBRESOURCE mapped ; 10ID3D11Resource * resource ; 11public : 12MappedResource (); 13HRESULT map (ID3D11Resource * res ,bool reading ); 14 ~MappedResource (); 15 16void * data ()const 17 { 18assert (nullptr != mapped .pData ); 19return mapped .pData ; 20 } 21 }; 22}