Definition
Web Neural Network API defines MLContext
[SecureContext, Exposed=(Window, DedicatedWorker)]
interface MLContext {
undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
Promise<ArrayBuffer> readTensor(MLTensor tensor);
MLOpSupportLimits opSupportLimits();
};