Skip to content

Commit

Permalink
Resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zesongw committed Nov 22, 2023
1 parent f1a43ac commit fd3a72d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions js/web/test/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,11 @@ export class ModelTestContext {
this.initializing = true;

const initStart = now();
const session = modelTest.backend == 'webnn' ?
await initializeSession(
modelTest.modelUrl, testOptions?.webnnOptions || 'webnn', modelTest.ioBinding, profile,
testOptions?.sessionOptions || {} || {}, this.cache) :
await initializeSession(
modelTest.modelUrl, modelTest.backend!, modelTest.ioBinding, profile, testOptions?.sessionOptions || {},
this.cache);
const executionProviderConfig =
modelTest.backend == 'webnn' ? (testOptions?.webnnOptions || 'webnn') : modelTest.backend!;
const session = await initializeSession(
modelTest.modelUrl, executionProviderConfig, modelTest.ioBinding, profile, testOptions?.sessionOptions || {},
this.cache);

const initEnd = now();

Expand Down

0 comments on commit fd3a72d

Please sign in to comment.