Search
Preparing search index...
The search index is not available
webnn-polyfill
Options
All
Public
Public/Protected
All
Inherited
Menu
webnn-polyfill
nn/graph_builder
MLGraphBuilder
Class MLGraphBuilder
spec
Hierarchy
MLGraphBuilder
Index
Constructors
constructor
Methods
add
average
Pool2d
batch
Normalization
build
clamp
concat
constant
conv2d
div
exp
gemm
gru
gru
Cell
input
instance
Normalization
leaky
Relu
matmul
max
max
Pool2d
min
mul
pad
pow
reduce
Log
Sum
Exp
reduce
Max
reduce
Mean
reduce
Min
reduce
Product
reduce
Sum
relu
resample
reshape
sigmoid
slice
softmax
split
squeeze
sub
tanh
transpose
Constructors
constructor
new MLGraph
Builder
(
context
:
MLContext
)
:
MLGraphBuilder
Parameters
context:
MLContext
Returns
MLGraphBuilder
Methods
add
add
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
average
Pool2d
average
Pool2d
(
input
:
MLOperand
, options
?:
MLPooling2dOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLPooling2dOptions
= {}
Returns
MLOperand
batch
Normalization
batch
Normalization
(
input
:
MLOperand
, mean
:
MLOperand
, variance
:
MLOperand
, options
?:
MLBatchNormalizationOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
mean:
MLOperand
variance:
MLOperand
options:
MLBatchNormalizationOptions
= {}
Returns
MLOperand
build
build
(
outputs
:
Record
<
string
,
MLOperand
>
)
:
MLGraph
spec
Parameters
outputs:
Record
<
string
,
MLOperand
>
Returns
MLGraph
clamp
clamp
(
x
:
MLOperand
, options
?:
MLClampOptions
)
:
MLOperand
spec
Parameters
x:
MLOperand
options:
MLClampOptions
= {}
Returns
MLOperand
concat
concat
(
inputs
:
MLOperand
[]
, axis
:
number
)
:
MLOperand
spec
Parameters
inputs:
MLOperand
[]
axis:
number
Returns
MLOperand
constant
constant
(
desc
:
MLOperandDescriptor
, bufferView
:
MLBufferView
)
:
MLOperand
constant
(
value
:
number
, type
?:
MLOperandType
)
:
MLOperand
spec
Parameters
desc:
MLOperandDescriptor
bufferView:
MLBufferView
Returns
MLOperand
spec
Parameters
value:
number
Optional
type:
MLOperandType
Returns
MLOperand
conv2d
conv2d
(
input
:
MLOperand
, filter
:
MLOperand
, options
?:
MLConv2dOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
filter:
MLOperand
options:
MLConv2dOptions
= {}
Returns
MLOperand
div
div
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
exp
exp
(
x
:
MLOperand
)
:
MLOperand
spec
Parameters
x:
MLOperand
Returns
MLOperand
gemm
gemm
(
a
:
MLOperand
, b
:
MLOperand
, options
?:
MLGemmOptions
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
options:
MLGemmOptions
= {}
Returns
MLOperand
gru
gru
(
input
:
MLOperand
, weight
:
MLOperand
, recurrentWeight
:
MLOperand
, steps
:
number
, hiddenSize
:
number
, options
?:
MLGruOptions
)
:
MLOperand
[]
spec
Parameters
input:
MLOperand
weight:
MLOperand
recurrentWeight:
MLOperand
steps:
number
hiddenSize:
number
options:
MLGruOptions
= {}
Returns
MLOperand
[]
gru
Cell
gru
Cell
(
input
:
MLOperand
, weight
:
MLOperand
, recurrentWeight
:
MLOperand
, hiddenState
:
MLOperand
, hiddenSize
:
number
, options
?:
MLGruCellOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
weight:
MLOperand
recurrentWeight:
MLOperand
hiddenState:
MLOperand
hiddenSize:
number
options:
MLGruCellOptions
= {}
Returns
MLOperand
input
input
(
name
:
string
, desc
:
MLOperandDescriptor
)
:
MLOperand
spec
Parameters
name:
string
desc:
MLOperandDescriptor
Returns
MLOperand
instance
Normalization
instance
Normalization
(
input
:
MLOperand
, options
?:
MLInstanceNormalizationOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLInstanceNormalizationOptions
= {}
Returns
MLOperand
leaky
Relu
leaky
Relu
(
x
:
MLOperand
, options
?:
MLLeakyReluOptions
)
:
MLOperand
spec
Parameters
x:
MLOperand
options:
MLLeakyReluOptions
= {}
Returns
MLOperand
matmul
matmul
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
max
max
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
max
Pool2d
max
Pool2d
(
input
:
MLOperand
, options
?:
MLPooling2dOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLPooling2dOptions
= {}
Returns
MLOperand
min
min
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
mul
mul
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
pad
pad
(
input
:
MLOperand
, padding
:
MLOperand
, options
?:
MLPadOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
padding:
MLOperand
options:
MLPadOptions
= {}
Returns
MLOperand
pow
pow
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
reduce
Log
Sum
Exp
reduce
Log
Sum
Exp
(
input
:
MLOperand
, options
?:
MLReduceOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLReduceOptions
= {}
Returns
MLOperand
reduce
Max
reduce
Max
(
input
:
MLOperand
, options
?:
MLReduceOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLReduceOptions
= {}
Returns
MLOperand
reduce
Mean
reduce
Mean
(
input
:
MLOperand
, options
?:
MLReduceOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLReduceOptions
= {}
Returns
MLOperand
reduce
Min
reduce
Min
(
input
:
MLOperand
, options
?:
MLReduceOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLReduceOptions
= {}
Returns
MLOperand
reduce
Product
reduce
Product
(
input
:
MLOperand
, options
?:
MLReduceOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLReduceOptions
= {}
Returns
MLOperand
reduce
Sum
reduce
Sum
(
input
:
MLOperand
, options
?:
MLReduceOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLReduceOptions
= {}
Returns
MLOperand
relu
relu
(
input
:
MLOperand
)
:
MLOperand
spec
Parameters
input:
MLOperand
Returns
MLOperand
resample
resample
(
input
:
MLOperand
, options
?:
MLResampleOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLResampleOptions
= {}
Returns
MLOperand
reshape
reshape
(
input
:
MLOperand
, newShape
:
number
[]
)
:
MLOperand
spec
Parameters
input:
MLOperand
newShape:
number
[]
Returns
MLOperand
sigmoid
sigmoid
(
x
:
MLOperand
)
:
MLOperand
spec
Parameters
x:
MLOperand
Returns
MLOperand
slice
slice
(
input
:
MLOperand
, starts
:
number
[]
, sizes
:
number
[]
, options
?:
MLSliceOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
starts:
number
[]
sizes:
number
[]
options:
MLSliceOptions
= {}
Returns
MLOperand
softmax
softmax
(
x
:
MLOperand
)
:
MLOperand
spec
Parameters
x:
MLOperand
Returns
MLOperand
split
split
(
input
:
MLOperand
, splits
:
number
|
number
[]
, options
?:
MLSplitOptions
)
:
MLOperand
[]
spec
Parameters
input:
MLOperand
splits:
number
|
number
[]
options:
MLSplitOptions
= {}
Returns
MLOperand
[]
squeeze
squeeze
(
input
:
MLOperand
, options
?:
MLSqueezeOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLSqueezeOptions
= {}
Returns
MLOperand
sub
sub
(
a
:
MLOperand
, b
:
MLOperand
)
:
MLOperand
spec
Parameters
a:
MLOperand
b:
MLOperand
Returns
MLOperand
tanh
tanh
(
x
:
MLOperand
)
:
MLOperand
spec
Parameters
x:
MLOperand
Returns
MLOperand
transpose
transpose
(
input
:
MLOperand
, options
?:
MLTransposeOptions
)
:
MLOperand
spec
Parameters
input:
MLOperand
options:
MLTransposeOptions
= {}
Returns
MLOperand
Modules
ml
nn/context
nn/graph
nn/graph_
builder
nn/operand
nn/types
MLAuto
Pad
MLFilter
Operand
Layout
MLInput
Operand
Layout
MLInterpolation
Mode
MLPadding
Mode
MLRecurrent
Network
Activation
MLRecurrent
Network
Direction
MLRecurrent
Network
Weight
Layout
MLGraph
Builder
constructor
add
average
Pool2d
batch
Normalization
build
clamp
concat
constant
conv2d
div
exp
gemm
gru
gru
Cell
input
instance
Normalization
leaky
Relu
matmul
max
max
Pool2d
min
mul
pad
pow
reduce
Log
Sum
Exp
reduce
Max
reduce
Mean
reduce
Min
reduce
Product
reduce
Sum
relu
resample
reshape
sigmoid
slice
softmax
split
squeeze
sub
tanh
transpose
MLBatch
Normalization
Options
MLBuffer
Resource
View
MLClamp
Options
MLConv2d
Options
MLGemm
Options
MLGru
Cell
Options
MLGru
Options
MLInstance
Normalization
Options
MLLeaky
Relu
Options
MLPad
Options
MLPooling2d
Options
MLReduce
Options
MLResample
Options
MLSlice
Options
MLSplit
Options
MLSqueeze
Options
MLTranspose
Options
MLBuffer
View
MLNamed
Operands
Generated using
TypeDoc
spec