Skip to content

Commit

Permalink
[webgpu] Don't try to check instanceof a specific promise type (#7944)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsoulanille authored Sep 5, 2023
1 parent 84ee729 commit cfb217b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfjs-backend-webgpu/src/backend_webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ export class WebGPUBackend extends KernelBackend {
private recordAndSubmit(
program: webgpu_program.WebGPUProgram, output: TensorInfo,
inputs: TensorInfo[], programDefinedUniform?: ProgramUniform) {
if (program.pipeline instanceof Promise<GPUComputePipeline>) {
if (program.pipeline instanceof Promise) {
throw new Error(
'Please call checkCompileCompletionAsync to ensure parallel compilation is done!');
}
Expand Down

0 comments on commit cfb217b

Please sign in to comment.