File tree 3 files changed +1
-10
lines changed
3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,6 @@ export declare namespace JSEP {
138
138
* @returns
139
139
*/
140
140
jsepRegisterMLContext : ( sessionId : number , context : MLContext ) => void ;
141
- /**
142
- * [exported from pre-jsep.js] Get MLContext for a session.
143
- * @param sessionId - specify the session ID.
144
- * @returns the MLContext.
145
- */
146
- jsepGetMLContext : ( sessionId : number ) => MLContext ;
147
141
/**
148
142
* [exported from pre-jsep.js] Reserve a MLBuffer ID attached to the current session.
149
143
* @returns the MLBuffer ID.
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ export class ModelTestContext {
257
257
const executionProviderConfig =
258
258
modelTest . backend === 'webnn' ? ( testOptions ?. webnnOptions || { name : 'webnn' } ) : modelTest . backend ! ;
259
259
let mlContext : MLContext | undefined ;
260
- if ( modelTest . ioBinding . includes ( 'ml-tensor' ) || modelTest . ioBinding . includes ( 'ml-location' ) ) {
260
+ if ( [ 'ml-tensor' , 'ml-location' ] . includes ( modelTest . ioBinding ) ) {
261
261
262
262
const webnnOptions = executionProviderConfig as ort . InferenceSession . WebNNExecutionProviderOption ;
263
263
const deviceType = ( webnnOptions as ort . InferenceSession . WebNNContextOptions ) ?. deviceType ;
Original file line number Diff line number Diff line change @@ -226,9 +226,6 @@ Module['jsepInit'] = (name, params) => {
226
226
backend [ 'onReleaseSession' ] ( sessionId ) ;
227
227
} ;
228
228
Module [ 'jsepReleaseBufferId' ] = Module . jsepReleaseBufferId ;
229
- Module [ 'jsepGetMLContext' ] = sessionId => {
230
- return backend [ 'getMLContext' ] ( sessionId ) ;
231
- } ;
232
229
Module [ 'jsepCreateMLBufferDownloader' ] = ( bufferId , type ) => {
233
230
return backend [ 'createMLBufferDownloader' ] ( bufferId , type ) ;
234
231
}
You can’t perform that action at this time.
0 commit comments