torch.requireWebGPU
function requireWebGPU(operationName: string): voidAssert that WebGPU is available for GPU-only operations. Throws a helpful error message if WebGPU is not available.
Parameters
operationNamestring
function requireWebGPU(operationName: string): voidAssert that WebGPU is available for GPU-only operations. Throws a helpful error message if WebGPU is not available.
operationNamestring