Class MLGraphBuilder
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
[Value("MLGraphBuilder")]
public class MLGraphBuilder
- Inheritance
-
MLGraphBuilder
- Inherited Members
-
Constructors
MLGraphBuilder()
MLGraphBuilder(MLContext)
public MLGraphBuilder(MLContext context)
Parameters
context MLContext
Methods
Abs(MLOperand, MLOperatorOptions)
[Value("abs")]
public MLOperand Abs(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Add(MLOperand, MLOperand, MLOperatorOptions)
[Value("add")]
public MLOperand Add(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
ArgMax(MLOperand, ulong, MLArgMinMaxOptions)
[Value("argMax")]
public MLOperand ArgMax(MLOperand input, ulong axis, MLArgMinMaxOptions options = null)
Parameters
input MLOperand
axis ulong
options MLArgMinMaxOptions
Returns
- MLOperand
ArgMin(MLOperand, ulong, MLArgMinMaxOptions)
[Value("argMin")]
public MLOperand ArgMin(MLOperand input, ulong axis, MLArgMinMaxOptions options = null)
Parameters
input MLOperand
axis ulong
options MLArgMinMaxOptions
Returns
- MLOperand
AveragePool2d(MLOperand, MLPool2dOptions)
[Value("averagePool2d")]
public MLOperand AveragePool2d(MLOperand input, MLPool2dOptions options = null)
Parameters
input MLOperand
options MLPool2dOptions
Returns
- MLOperand
BatchNormalization(MLOperand, MLOperand, MLOperand, MLBatchNormalizationOptions)
[Value("batchNormalization")]
public MLOperand BatchNormalization(MLOperand input, MLOperand mean, MLOperand variance, MLBatchNormalizationOptions options = null)
Parameters
input MLOperand
mean MLOperand
variance MLOperand
options MLBatchNormalizationOptions
Returns
- MLOperand
Build(Dictionary<string, MLOperand>)
[Value("build")]
public Task<MLGraph> Build(Dictionary<string, MLOperand> outputs)
Parameters
outputs Dictionary<string, MLOperand>
Returns
- Task<MLGraph>
Cast(MLOperand, MLOperandDataType, MLOperatorOptions)
[Value("cast")]
public MLOperand Cast(MLOperand input, MLOperandDataType type, MLOperatorOptions options = null)
Parameters
input MLOperand
type MLOperandDataType
options MLOperatorOptions
Returns
- MLOperand
Ceil(MLOperand, MLOperatorOptions)
[Value("ceil")]
public MLOperand Ceil(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Clamp(MLOperand, MLClampOptions)
[Value("clamp")]
public MLOperand Clamp(MLOperand input, MLClampOptions options = null)
Parameters
input MLOperand
options MLClampOptions
Returns
- MLOperand
Concat(List<MLOperand>, ulong, MLOperatorOptions)
[Value("concat")]
public MLOperand Concat(List<MLOperand> inputs, ulong axis, MLOperatorOptions options = null)
Parameters
inputs List<MLOperand>
axis ulong
options MLOperatorOptions
Returns
- MLOperand
Constant(MLOperandDataType, Union226)
[Value("constant")]
public MLOperand Constant(MLOperandDataType type, Union226 value)
Parameters
type MLOperandDataType
value Union226
Returns
- MLOperand
Constant(MLOperandDescriptor, Union225)
[Value("constant")]
public MLOperand Constant(MLOperandDescriptor descriptor, Union225 buffer)
Parameters
descriptor MLOperandDescriptor
buffer Union225
Returns
- MLOperand
Conv2d(MLOperand, MLOperand, MLConv2dOptions)
[Value("conv2d")]
public MLOperand Conv2d(MLOperand input, MLOperand filter, MLConv2dOptions options = null)
Parameters
input MLOperand
filter MLOperand
options MLConv2dOptions
Returns
- MLOperand
ConvTranspose2d(MLOperand, MLOperand, MLConvTranspose2dOptions)
[Value("convTranspose2d")]
public MLOperand ConvTranspose2d(MLOperand input, MLOperand filter, MLConvTranspose2dOptions options = null)
Parameters
input MLOperand
filter MLOperand
options MLConvTranspose2dOptions
Returns
- MLOperand
Cos(MLOperand, MLOperatorOptions)
[Value("cos")]
public MLOperand Cos(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Div(MLOperand, MLOperand, MLOperatorOptions)
[Value("div")]
public MLOperand Div(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Elu(MLOperand, MLEluOptions)
[Value("elu")]
public MLOperand Elu(MLOperand input, MLEluOptions options = null)
Parameters
input MLOperand
options MLEluOptions
Returns
- MLOperand
Equal(MLOperand, MLOperand, MLOperatorOptions)
[Value("equal")]
public MLOperand Equal(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Erf(MLOperand, MLOperatorOptions)
[Value("erf")]
public MLOperand Erf(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Exp(MLOperand, MLOperatorOptions)
[Value("exp")]
public MLOperand Exp(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Expand(MLOperand, List<ulong>, MLOperatorOptions)
[Value("expand")]
public MLOperand Expand(MLOperand input, List<ulong> newShape, MLOperatorOptions options = null)
Parameters
input MLOperand
newShape List<ulong>
options MLOperatorOptions
Returns
- MLOperand
Floor(MLOperand, MLOperatorOptions)
[Value("floor")]
public MLOperand Floor(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Gather(MLOperand, MLOperand, MLGatherOptions)
[Value("gather")]
public MLOperand Gather(MLOperand input, MLOperand indices, MLGatherOptions options = null)
Parameters
input MLOperand
indices MLOperand
options MLGatherOptions
Returns
- MLOperand
Gelu(MLOperand, MLOperatorOptions)
[Value("gelu")]
public MLOperand Gelu(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Gemm(MLOperand, MLOperand, MLGemmOptions)
[Value("gemm")]
public MLOperand Gemm(MLOperand a, MLOperand b, MLGemmOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLGemmOptions
Returns
- MLOperand
Greater(MLOperand, MLOperand, MLOperatorOptions)
[Value("greater")]
public MLOperand Greater(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
GreaterOrEqual(MLOperand, MLOperand, MLOperatorOptions)
[Value("greaterOrEqual")]
public MLOperand GreaterOrEqual(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Gru(MLOperand, MLOperand, MLOperand, ulong, ulong, MLGruOptions)
[Value("gru")]
public List<MLOperand> Gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight, ulong steps, ulong hiddenSize, MLGruOptions options = null)
Parameters
input MLOperand
weight MLOperand
recurrentWeight MLOperand
steps ulong
hiddenSize ulong
options MLGruOptions
Returns
- List<MLOperand>
GruCell(MLOperand, MLOperand, MLOperand, MLOperand, ulong, MLGruCellOptions)
[Value("gruCell")]
public MLOperand GruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight, MLOperand hiddenState, ulong hiddenSize, MLGruCellOptions options = null)
Parameters
input MLOperand
weight MLOperand
recurrentWeight MLOperand
hiddenState MLOperand
hiddenSize ulong
options MLGruCellOptions
Returns
- MLOperand
HardSigmoid(MLOperand, MLHardSigmoidOptions)
[Value("hardSigmoid")]
public MLOperand HardSigmoid(MLOperand input, MLHardSigmoidOptions options = null)
Parameters
input MLOperand
options MLHardSigmoidOptions
Returns
- MLOperand
HardSwish(MLOperand, MLOperatorOptions)
[Value("hardSwish")]
public MLOperand HardSwish(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Identity(MLOperand, MLOperatorOptions)
[Value("identity")]
public MLOperand Identity(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
[Value("input")]
public MLOperand Input(string name, MLOperandDescriptor descriptor)
Parameters
name string
descriptor MLOperandDescriptor
Returns
- MLOperand
InstanceNormalization(MLOperand, MLInstanceNormalizationOptions)
[Value("instanceNormalization")]
public MLOperand InstanceNormalization(MLOperand input, MLInstanceNormalizationOptions options = null)
Parameters
input MLOperand
options MLInstanceNormalizationOptions
Returns
- MLOperand
L2Pool2d(MLOperand, MLPool2dOptions)
[Value("l2Pool2d")]
public MLOperand L2Pool2d(MLOperand input, MLPool2dOptions options = null)
Parameters
input MLOperand
options MLPool2dOptions
Returns
- MLOperand
LayerNormalization(MLOperand, MLLayerNormalizationOptions)
[Value("layerNormalization")]
public MLOperand LayerNormalization(MLOperand input, MLLayerNormalizationOptions options = null)
Parameters
input MLOperand
options MLLayerNormalizationOptions
Returns
- MLOperand
LeakyRelu(MLOperand, MLLeakyReluOptions)
[Value("leakyRelu")]
public MLOperand LeakyRelu(MLOperand input, MLLeakyReluOptions options = null)
Parameters
input MLOperand
options MLLeakyReluOptions
Returns
- MLOperand
Lesser(MLOperand, MLOperand, MLOperatorOptions)
[Value("lesser")]
public MLOperand Lesser(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
LesserOrEqual(MLOperand, MLOperand, MLOperatorOptions)
[Value("lesserOrEqual")]
public MLOperand LesserOrEqual(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Linear(MLOperand, MLLinearOptions)
[Value("linear")]
public MLOperand Linear(MLOperand input, MLLinearOptions options = null)
Parameters
input MLOperand
options MLLinearOptions
Returns
- MLOperand
Log(MLOperand, MLOperatorOptions)
[Value("log")]
public MLOperand Log(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
LogicalNot(MLOperand, MLOperatorOptions)
[Value("logicalNot")]
public MLOperand LogicalNot(MLOperand a, MLOperatorOptions options = null)
Parameters
a MLOperand
options MLOperatorOptions
Returns
- MLOperand
Lstm(MLOperand, MLOperand, MLOperand, ulong, ulong, MLLstmOptions)
[Value("lstm")]
public List<MLOperand> Lstm(MLOperand input, MLOperand weight, MLOperand recurrentWeight, ulong steps, ulong hiddenSize, MLLstmOptions options = null)
Parameters
input MLOperand
weight MLOperand
recurrentWeight MLOperand
steps ulong
hiddenSize ulong
options MLLstmOptions
Returns
- List<MLOperand>
LstmCell(MLOperand, MLOperand, MLOperand, MLOperand, MLOperand, ulong, MLLstmCellOptions)
[Value("lstmCell")]
public List<MLOperand> LstmCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight, MLOperand hiddenState, MLOperand cellState, ulong hiddenSize, MLLstmCellOptions options = null)
Parameters
input MLOperand
weight MLOperand
recurrentWeight MLOperand
hiddenState MLOperand
cellState MLOperand
hiddenSize ulong
options MLLstmCellOptions
Returns
- List<MLOperand>
Matmul(MLOperand, MLOperand, MLOperatorOptions)
[Value("matmul")]
public MLOperand Matmul(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Max(MLOperand, MLOperand, MLOperatorOptions)
[Value("max")]
public MLOperand Max(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
MaxPool2d(MLOperand, MLPool2dOptions)
[Value("maxPool2d")]
public MLOperand MaxPool2d(MLOperand input, MLPool2dOptions options = null)
Parameters
input MLOperand
options MLPool2dOptions
Returns
- MLOperand
Min(MLOperand, MLOperand, MLOperatorOptions)
[Value("min")]
public MLOperand Min(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Mul(MLOperand, MLOperand, MLOperatorOptions)
[Value("mul")]
public MLOperand Mul(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Neg(MLOperand, MLOperatorOptions)
[Value("neg")]
public MLOperand Neg(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Pad(MLOperand, List<ulong>, List<ulong>, MLPadOptions)
[Value("pad")]
public MLOperand Pad(MLOperand input, List<ulong> beginningPadding, List<ulong> endingPadding, MLPadOptions options = null)
Parameters
input MLOperand
beginningPadding List<ulong>
endingPadding List<ulong>
options MLPadOptions
Returns
- MLOperand
Pow(MLOperand, MLOperand, MLOperatorOptions)
[Value("pow")]
public MLOperand Pow(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Prelu(MLOperand, MLOperand, MLOperatorOptions)
[Value("prelu")]
public MLOperand Prelu(MLOperand input, MLOperand slope, MLOperatorOptions options = null)
Parameters
input MLOperand
slope MLOperand
options MLOperatorOptions
Returns
- MLOperand
Reciprocal(MLOperand, MLOperatorOptions)
[Value("reciprocal")]
public MLOperand Reciprocal(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
ReduceL1(MLOperand, MLReduceOptions)
[Value("reduceL1")]
public MLOperand ReduceL1(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceL2(MLOperand, MLReduceOptions)
[Value("reduceL2")]
public MLOperand ReduceL2(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceLogSum(MLOperand, MLReduceOptions)
[Value("reduceLogSum")]
public MLOperand ReduceLogSum(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceLogSumExp(MLOperand, MLReduceOptions)
[Value("reduceLogSumExp")]
public MLOperand ReduceLogSumExp(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceMax(MLOperand, MLReduceOptions)
[Value("reduceMax")]
public MLOperand ReduceMax(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceMean(MLOperand, MLReduceOptions)
[Value("reduceMean")]
public MLOperand ReduceMean(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceMin(MLOperand, MLReduceOptions)
[Value("reduceMin")]
public MLOperand ReduceMin(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceProduct(MLOperand, MLReduceOptions)
[Value("reduceProduct")]
public MLOperand ReduceProduct(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceSum(MLOperand, MLReduceOptions)
[Value("reduceSum")]
public MLOperand ReduceSum(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
ReduceSumSquare(MLOperand, MLReduceOptions)
[Value("reduceSumSquare")]
public MLOperand ReduceSumSquare(MLOperand input, MLReduceOptions options = null)
Parameters
input MLOperand
options MLReduceOptions
Returns
- MLOperand
Relu(MLOperand, MLOperatorOptions)
[Value("relu")]
public MLOperand Relu(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Resample2d(MLOperand, MLResample2dOptions)
[Value("resample2d")]
public MLOperand Resample2d(MLOperand input, MLResample2dOptions options = null)
Parameters
input MLOperand
options MLResample2dOptions
Returns
- MLOperand
Reshape(MLOperand, List<ulong>, MLOperatorOptions)
[Value("reshape")]
public MLOperand Reshape(MLOperand input, List<ulong> newShape, MLOperatorOptions options = null)
Parameters
input MLOperand
newShape List<ulong>
options MLOperatorOptions
Returns
- MLOperand
Sigmoid(MLOperand, MLOperatorOptions)
[Value("sigmoid")]
public MLOperand Sigmoid(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Sin(MLOperand, MLOperatorOptions)
[Value("sin")]
public MLOperand Sin(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Slice(MLOperand, List<ulong>, List<ulong>, MLOperatorOptions)
[Value("slice")]
public MLOperand Slice(MLOperand input, List<ulong> starts, List<ulong> sizes, MLOperatorOptions options = null)
Parameters
input MLOperand
starts List<ulong>
sizes List<ulong>
options MLOperatorOptions
Returns
- MLOperand
Softmax(MLOperand, ulong, MLOperatorOptions)
[Value("softmax")]
public MLOperand Softmax(MLOperand input, ulong axis, MLOperatorOptions options = null)
Parameters
input MLOperand
axis ulong
options MLOperatorOptions
Returns
- MLOperand
Softplus(MLOperand, MLOperatorOptions)
[Value("softplus")]
public MLOperand Softplus(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Softsign(MLOperand, MLOperatorOptions)
[Value("softsign")]
public MLOperand Softsign(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Split(MLOperand, Union227, MLSplitOptions)
[Value("split")]
public List<MLOperand> Split(MLOperand input, Union227 splits, MLSplitOptions options = null)
Parameters
input MLOperand
splits Union227
options MLSplitOptions
Returns
- List<MLOperand>
Sqrt(MLOperand, MLOperatorOptions)
[Value("sqrt")]
public MLOperand Sqrt(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Sub(MLOperand, MLOperand, MLOperatorOptions)
[Value("sub")]
public MLOperand Sub(MLOperand a, MLOperand b, MLOperatorOptions options = null)
Parameters
a MLOperand
b MLOperand
options MLOperatorOptions
Returns
- MLOperand
Tan(MLOperand, MLOperatorOptions)
[Value("tan")]
public MLOperand Tan(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Tanh(MLOperand, MLOperatorOptions)
[Value("tanh")]
public MLOperand Tanh(MLOperand input, MLOperatorOptions options = null)
Parameters
input MLOperand
options MLOperatorOptions
Returns
- MLOperand
Transpose(MLOperand, MLTransposeOptions)
[Value("transpose")]
public MLOperand Transpose(MLOperand input, MLTransposeOptions options = null)
Parameters
input MLOperand
options MLTransposeOptions
Returns
- MLOperand
Triangular(MLOperand, MLTriangularOptions)
[Value("triangular")]
public MLOperand Triangular(MLOperand input, MLTriangularOptions options = null)
Parameters
input MLOperand
options MLTriangularOptions
Returns
- MLOperand
Where(MLOperand, MLOperand, MLOperand, MLOperatorOptions)
[Value("where")]
public MLOperand Where(MLOperand condition, MLOperand trueValue, MLOperand falseValue, MLOperatorOptions options = null)
Parameters
condition MLOperand
trueValue MLOperand
falseValue MLOperand
options MLOperatorOptions
Returns
- MLOperand