Skip to content

Commit

Permalink
Update packages/web/src/onnx.ts
Browse files Browse the repository at this point in the history
Renamed function to fit naming conventions
  • Loading branch information
DanielHauschildt authored Aug 6, 2024
1 parent f958adb commit deca094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/onnx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Config } from './schema';
*
* Docs for WebGPU requestAdapter: https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter#return_value
*/
async function getUseWebGPU(config: Config): Promise<boolean> {
async function canUseWebGPU(config: Config): Promise<boolean> {
const useWebGPU = config.device === 'gpu';
if (!useWebGPU) return false;
const adapter = await navigator.gpu.requestAdapter();
Expand Down

0 comments on commit deca094

Please sign in to comment.