WebIDLpedia

MLContext interface

Definition

Web Neural Network API defines MLContext



[SecureContext, Exposed=(Window, DedicatedWorker)]
interface MLContext {
  Promise<MLComputeResult> compute(
      MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);

  MLOpSupportLimits opSupportLimits();
};

Methods and attributes that return objects implementing MLContext

Referring IDL interfaces/dictionaries