WebNN
Web Neural Network API
Module:w3c.WebNN
Support: Experimental
Docs: w3c Docs
Type Aliases
MLNamedTensorsMLNamedOperandsMLDataTypeListMLNumber
Enum MLPowerPreference
Power preference hint for context creation.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
default | |
high-performance | |
low-power |
Enum MLInputOperandLayout
Layout format for input operands in layout-dependent operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
nchw | |
nhwc |
Enum MLOperandDataType
| Value | Description |
|---|---|
float32 | |
float16 | |
int32 | |
uint32 | |
int64 | |
uint64 | |
int8 | |
uint8 |
Enum MLConv2dFilterOperandLayout
Filter layout for conv2d operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
oihw | |
hwio | |
ohwi | |
ihwo |
Enum MLConvTranspose2dFilterOperandLayout
Filter layout for convTranspose2d operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
iohw | |
hwoi | |
ohwi |
Enum MLGruWeightLayout
Weight layout for GRU operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
zrn | |
rzn |
Enum MLRecurrentNetworkActivation
Activation function for recurrent network operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
relu | |
sigmoid | |
tanh |
Enum MLRecurrentNetworkDirection
Direction for recurrent network operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
forward | |
backward | |
both |
Enum MLLstmWeightLayout
Weight layout for LSTM operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
iofg | |
ifgo |
Enum MLPaddingMode
Padding mode for pad operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
constant | |
edge | |
reflection |
Enum MLRoundingType
Rounding type for pooling output shape computation.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
floor | |
ceil |
Enum MLInterpolationMode
Interpolation mode for resample2d operations.
Since: 1.1.0 Docs: w3c Docs| Value | Description |
|---|---|
nearest-neighbor | |
linear |
Dictionary MLContextOptions
Options for creating an MLContext.
Since: 1.1.0 Docs: w3c Docs2 members: 2 undocumented
Properties
---
Dictionary MLContextLostInfo
Information about a context lost event.
Since: 1.1.0 Docs: w3c Docs1 members: 1 undocumented
Properties
---
Dictionary MLTensorDescriptor
Describes tensor properties including readability and writability.
Extends:w3c.MLOperandDescriptor
Since: 1.1.0
Docs: w3c Docs
2 members: 2 undocumented
Properties
---
Dictionary MLOperatorOptions
Base options dictionary for all operators, providing a label for debugging.
Since: 1.1.0 Docs: w3c Docs1 members: 1 undocumented
Properties
---
Dictionary MLRankRange
Minimum and maximum supported rank range.
Since: 1.1.0 Docs: w3c Docs2 members: 2 undocumented
Properties
---
Dictionary MLTensorLimits
Support limits for tensor operands (data types and rank range).
Since: 1.1.0 Docs: w3c Docs2 members: 2 undocumented
Properties
---
Dictionary MLBinarySupportLimits
Support limits for binary operations.
Since: 1.1.0 Docs: w3c Docs3 members: 3 undocumented
Properties
---
Dictionary MLSingleInputSupportLimits
Support limits for single-input operations.
Since: 1.1.0 Docs: w3c Docs2 members: 2 undocumented
Properties
---
Dictionary MLLogicalNotSupportLimits
Support limits for logicalNot and isNaN/isInfinite operations.
Since: 1.1.0 Docs: w3c Docs2 members: 2 undocumented
Properties
---
Dictionary MLOpSupportLimits
Comprehensive support limits for all operations on an MLContext.
Since: 1.1.0 Docs: w3c Docs100 members: 100 undocumented
Properties
---
Dictionary MLBatchNormalizationSupportLimits
6 members: 6 undocumented
Properties
---
Dictionary MLConcatSupportLimits
2 members: 2 undocumented
Properties
---
Dictionary MLConv2dSupportLimits
4 members: 4 undocumented
Properties
---
Dictionary MLQuantizeDequantizeLinearSupportLimits
4 members: 4 undocumented
Properties
---
Dictionary MLGatherSupportLimits
3 members: 3 undocumented
Properties
---
Dictionary MLGemmSupportLimits
4 members: 4 undocumented
Properties
---
Dictionary MLGruSupportLimits
8 members: 8 undocumented
Properties
---
Dictionary MLGruCellSupportLimits
7 members: 7 undocumented
Properties
---
Dictionary MLNormalizationSupportLimits
4 members: 4 undocumented
Properties
---
Dictionary MLLstmSupportLimits
11 members: 11 undocumented
Properties
---
Dictionary MLLstmCellSupportLimits
10 members: 10 undocumented
Properties
---
Dictionary MLPreluSupportLimits
3 members: 3 undocumented
Properties
---
Dictionary MLScatterSupportLimits
4 members: 4 undocumented
Properties
---
Dictionary MLSplitSupportLimits
2 members: 2 undocumented
Properties
---
Dictionary MLWhereSupportLimits
4 members: 4 undocumented
Properties
---
Dictionary MLArgMinMaxOptions
Extends: MLOperatorOptions
2 members: 2 undocumented
Properties
---
Dictionary MLBatchNormalizationOptions
Extends: MLOperatorOptions
4 members: 4 undocumented
Properties
---
Dictionary MLClampOptions
Extends: MLOperatorOptions
2 members: 2 undocumented
Properties
---
Dictionary MLCumulativeSumOptions
Extends: MLOperatorOptions
2 members: 2 undocumented
Properties
---
Dictionary MLEluOptions
Extends: MLOperatorOptions
1 members: 1 undocumented
Properties
---
Dictionary MLGatherOptions
Extends: MLOperatorOptions
1 members: 1 undocumented
Properties
---
Dictionary MLGemmOptions
Extends: MLOperatorOptions
5 members: 5 undocumented
Properties
---
Dictionary MLGruOptions
Extends: MLOperatorOptions
8 members: 8 undocumented
Properties
---
Dictionary MLGruCellOptions
Extends: MLOperatorOptions
5 members: 5 undocumented
Properties
---
Dictionary MLHardSigmoidOptions
Extends: MLOperatorOptions
2 members: 2 undocumented
Properties
---
Dictionary MLInstanceNormalizationOptions
Extends: MLOperatorOptions
4 members: 4 undocumented
Properties
---
Dictionary MLLeakyReluOptions
Extends: MLOperatorOptions
1 members: 1 undocumented
Properties
---
Dictionary MLLinearOptions
Extends: MLOperatorOptions
2 members: 2 undocumented
Properties
---
Dictionary MLLstmOptions
Extends: MLOperatorOptions
9 members: 9 undocumented
Properties
---
Dictionary MLLstmCellOptions
Extends: MLOperatorOptions
5 members: 5 undocumented
Properties
---
Dictionary MLPadOptions
Extends: MLOperatorOptions
2 members: 2 undocumented
Properties
---
Dictionary MLScatterOptions
Extends: MLOperatorOptions
1 members: 1 undocumented
Properties
---
Dictionary MLSplitOptions
Extends: MLOperatorOptions
1 members: 1 undocumented
Properties
---
Dictionary MLTriangularOptions
Extends: MLOperatorOptions
2 members: 2 undocumented
Properties
---
Mixin NavigatorML
Exposes the ML interface on Navigator and WorkerNavigator.
Since: 1.1.0 Docs: w3c DocsProperties
---
Interface ML
Exposes the ML interface on Navigator and WorkerNavigator.
Since: 1.1.0 Docs: w3c Docs2 members: 2 undocumented
Methods
---
Interface MLContext
Create a context with the given options or from a GPUDevice.
10 members: 10 undocumented
Methods
Properties
---
Interface MLGraph
Dispatch a compiled graph with the given input and output tensors.
1 members: 1 undocumented
Methods
---
Interface MLOperand
2 members: 2 undocumented
Properties
---
Interface MLTensor
6 members: 6 undocumented
Methods
Properties
---