Skip to content

Commit

Permalink
fix the null issue
Browse files Browse the repository at this point in the history
  • Loading branch information
qjia7 committed Sep 28, 2022
1 parent b4236cf commit 13bf178
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tfjs-backend-webgpu/src/adapter_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export class AdapterInfo {
private vendor: string;

constructor(adapterInfo: GPUAdapterInfo) {
this.vendor = adapterInfo.vendor;
if (adapterInfo) {
this.vendor = adapterInfo.vendor;
}
}

isIntel(): boolean {
Expand Down

0 comments on commit 13bf178

Please sign in to comment.