chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const cv = require('./opencv');
|
||||
const webnn = require(process.env.WEBNN_NATIVE_DIR+'/../../node/lib/webnn');
|
||||
// navigator is undefined in node.js, but defined in electron.js.
|
||||
if (global.navigator === undefined) {
|
||||
global.navigator = {};
|
||||
}
|
||||
global.navigator.ml = webnn.ml;
|
||||
global.MLContext = webnn.MLContext
|
||||
global.MLGraphBuilder = webnn.MLGraphBuilder
|
||||
global.MLGraph = webnn.MLGraph
|
||||
global.MLOperand = webnn.MLOperand
|
||||
global.cv = cv;
|
||||
Reference in New Issue
Block a user