123 references to OnnxNode
Microsoft.ML.Data (46)
Model\Onnx\OnnxContext.cs (2)
109
public abstract
OnnxNode
CreateNode(string opType, IEnumerable<string> inputs,
123
public
OnnxNode
CreateNode(string opType, string input, string output, string name, string domain = null)
Prediction\Calibrator.cs (2)
1308
var
node = ctx.CreateNode(opType, new[] { outputNames[0], minVar }, new[] { subNodeOutput }, ctx.GetNodeName(opType), "");
1806
var
node = ctx.CreateNode(opType, new[] { scoreProbablityColumnNames[0], slopVar }, new[] { mulNodeOutput }, ctx.GetNodeName(opType), "");
Scorers\BinaryClassifierScorer.cs (1)
201
OnnxNode
node;
Transforms\ColumnConcatenatingTransformer.cs (2)
940
var
node = ctx.CreateNode(opType, inputList.Select(t => t.Key),
947
var
castNode = ctx.CreateNode(opType, vectorizerOutputName, dstVariableName, ctx.GetNodeName(opType), "");
Transforms\ColumnCopying.cs (1)
253
var
node = ctx.CreateNode(opType, srcVariableName, dstVariableName, ctx.GetNodeName(opType), "");
Transforms\Hashing.cs (5)
1363
OnnxNode
castNode;
1364
OnnxNode
murmurNode;
1365
OnnxNode
isZeroNode;
1422
var
shiftNode = ctx.CreateNode(opType, new[] { murmurOutput, shiftValue }, new[] { bitShiftOutput }, ctx.GetNodeName(opType), "");
1451
var
castNodeFinal = ctx.CreateNode(opType, input, dstVariable, ctx.GetNodeName(opType), "");
Transforms\KeyToValue.cs (2)
513
var
castNode = ctx.CreateNode(opType, srcVariableName, castNodeOutput, ctx.GetNodeName(opType), "");
527
var
node = ctx.CreateNode(opType, castNodeOutput, labelEncoderOutput, ctx.GetNodeName(opType));
Transforms\KeyToVector.cs (3)
713
var
castNode = ctx.CreateNode(opType, srcVariableName, castOutput, ctx.GetNodeName(opType), "");
723
var
node = ctx.CreateNode(opType, castOutput, encodedVariableName, ctx.GetNodeName(opType));
730
var
reduceNode = ctx.CreateNode(opType, encodedVariableName, dstVariableName, ctx.GetNodeName(opType), "");
Transforms\NormalizeColumn.cs (3)
422
public abstract bool OnnxInfo(OnnxContext ctx,
OnnxNode
nodeProtoWrapper, int featureCount);
542
public bool OnnxInfo(OnnxContext ctx,
OnnxNode
nodeProtoWrapper, int featureCount)
673
public bool OnnxInfo(OnnxContext ctx,
OnnxNode
nodeProtoWrapper, int featureCount)
Transforms\NormalizeColumnDbl.cs (2)
700
public override bool OnnxInfo(OnnxContext ctx,
OnnxNode
nodeProtoWrapper, int featureCount)
772
public override bool OnnxInfo(OnnxContext ctx,
OnnxNode
node, int featureCount)
Transforms\NormalizeColumnSng.cs (2)
858
public override bool OnnxInfo(OnnxContext ctx,
OnnxNode
node, int featureCount)
929
public override bool OnnxInfo(OnnxContext ctx,
OnnxNode
node, int featureCount)
Transforms\Normalizer.cs (1)
840
var
node = ctx.CreateNode(opType, srcVariableName, dstVariableName, ctx.GetNodeName(opType));
Transforms\NormalizeUtils.cs (1)
68
bool OnnxInfo(OnnxContext ctx,
OnnxNode
nodeProtoWrapper, int featureCount);
Transforms\SlotsDroppingTransformer.cs (1)
908
var
node = ctx.CreateNode(opType, new[] { srcVariableName, slotsVar }, new[] { dstVariableName }, ctx.GetNodeName(opType), "");
Transforms\TypeConverting.cs (1)
504
var
node = ctx.CreateNode(opType, srcVariableName, dstVariableName, ctx.GetNodeName(opType), "");
Transforms\ValueMapping.cs (11)
1085
private void CastInputTo<T>(OnnxContext ctx, out
OnnxNode
node, string srcVariableName, string opType, string labelEncoderOutput, PrimitiveDataViewType itemType)
1089
var
castNode = ctx.CreateNode("Cast", srcVariableName, castOutput, ctx.GetNodeName("Cast"), "");
1105
OnnxNode
node;
1201
var
castNode = ctx.CreateNode("Cast", srcVariableName, castOutput, ctx.GetNodeName("Cast"), "");
1221
var
castNode = ctx.CreateNode("Cast", labelEncoderOutput, dstVariableName, ctx.GetNodeName("Cast"), "");
1227
var
castNode = ctx.CreateNode("Cast", labelEncoderOutput, dstVariableName, ctx.GetNodeName("Cast"), "");
1233
var
castNode = ctx.CreateNode("Cast", labelEncoderOutput, dstVariableName, ctx.GetNodeName("Cast"), "");
1239
var
castNode = ctx.CreateNode("Cast", labelEncoderOutput, dstVariableName, ctx.GetNodeName("Cast"), "");
1245
var
castNode = ctx.CreateNode("Cast", labelEncoderOutput, dstVariableName, ctx.GetNodeName("Cast"), "");
1255
var
castNode = ctx.CreateNode("Cast", labelEncoderOutput, dstVariableName, ctx.GetNodeName("Cast"), "");
1265
var
castNode = ctx.CreateNode("Cast", labelEncoderOutput, dstVariableName, ctx.GetNodeName("Cast"), "");
Transforms\ValueToKeyMappingTransformer.cs (6)
787
private void CastInputToString<T>(OnnxContext ctx, out
OnnxNode
node, out long[] termIds, string srcVariableName, int iinfo,
792
var
castNode = ctx.CreateNode("Cast", srcVariableName, castOutput, ctx.GetNodeName("Cast"), "");
800
private void CastInputToFloat<T>(OnnxContext ctx, out
OnnxNode
node, out long[] termIds, string srcVariableName, int iinfo,
805
var
castNode = ctx.CreateNode("Cast", srcVariableName, castOutput, ctx.GetNodeName("Cast"), "");
818
OnnxNode
node;
821
OnnxNode
castNode;
Microsoft.ML.FastTree (1)
FastTree.cs (1)
3108
var
node = ctx.CreateNode(opType, new[] { featureColumn }, new[] { scoreVarName }, ctx.GetNodeName(opType));
Microsoft.ML.KMeansClustering (6)
KMeansModelParameters.cs (6)
338
var
reduceNodeX2 = ctx.CreateNode("ReduceSumSquare", nameX, nameX2, ctx.GetNodeName("ReduceSumSquare"), "");
346
var
gemmNodeXC2 = ctx.CreateNode("Gemm", new[] { nameX, nameC, zeroName }, new[] { nameXC2 }, ctx.GetNodeName("Gemm"), "");
352
var
addNodeZ = ctx.CreateNode("Add", new[] { nameX2, nameXC2 }, new[] { nameZ }, ctx.GetNodeName("Add"), "");
356
var
addNodeY = ctx.CreateNode("Add", new[] { nameZ, nameC2 }, new[] { nameY }, ctx.GetNodeName("Add"), "");
360
var
predictNodeL = ctx.CreateNode("ArgMin", nameY, nameL, ctx.GetNodeName("ArgMin"), "");
366
var
predictedNode = ctx.CreateNode("Cast", nameL, outputNames[0], ctx.GetNodeName("Cast"), "");
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
664
var
node = ctx.CreateNode(opType, new[] { modelName, srcVariableName, zeroValueName }, new[] { gemmOutput }, ctx.GetNodeName(opType), "");
Microsoft.ML.PCA (2)
PcaTransformer.cs (2)
667
var
transposeNode = ctx.CreateNode(opType, srcVariableName, transposeOutput, ctx.GetNodeName(opType), "");
670
var
gemmNode = ctx.CreateNode(opType, new[] { transposeOutput, pcaMatrix, zeroMeanNode }, new[] { dstVariableName }, ctx.GetNodeName(opType), "");
Microsoft.ML.StandardTrainers (19)
Standard\LinearModelParameters.cs (1)
146
var
node = ctx.CreateNode(opType, new[] { featureColumn }, new[] { scoreVarName }, ctx.GetNodeName(opType));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
991
var
node = ctx.CreateNode(opType, new[] { featureColumn }, new[] { classifierLabelOutput, outputs[1] }, ctx.GetNodeName(opType));
1000
var
unsqueezeNode = ctx.CreateNode(opType, classifierLabelOutput, unsqueezeOutput, ctx.GetNodeName(opType), "");
1005
var
castNode = ctx.CreateNode(opType, unsqueezeOutput, outputs[0], ctx.GetNodeName(opType), "");
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
461
var
node = ctx.CreateNode(opType, greaterOutput, castOutput, ctx.GetNodeName(opType), "");
545
var
squeezeNode = ctx.CreateNode(opType, sumOutput, outputNames[1], ctx.GetNodeName(opType), "");
Standard\MulticlassClassification\OneVersusAllTrainer.cs (12)
563
var
clipNode = ctx.CreateNode(opType, new[] { clipInput, zeroVar }, new[] { outputs[i] }, ctx.GetNodeName(opType), "");
578
var
argMaxNode = ctx.CreateNode(opType, inputName, argMaxOutput, ctx.GetNodeName(opType), "");
585
var
addNode = ctx.CreateNode(opType, new[] { argMaxOutput, one }, new[] { addOutput }, ctx.GetNodeName(opType), "");
588
var
castToUint32Node = ctx.CreateNode(opType, addOutput, outputNames[0], ctx.GetNodeName(opType), "");
670
var
concatNode = ctx.CreateNode(opType, probabilityOutputs, new[] { concatOutput }, ctx.GetNodeName(opType), "");
807
var
castNode = ctx.CreateNode(opType, sumOutput, castOutput, ctx.GetNodeName(opType), "");
817
var
castIsZeroSumToFloatNode = ctx.CreateNode(opType, notOutput, castIsZeroSumToFloat, ctx.GetNodeName(opType), "");
837
var
concatNode = ctx.CreateNode(opType, divOutputs, new[] { concatOutput }, ctx.GetNodeName(opType), "");
926
var
concatNode = ctx.CreateNode(opType, probabilityOutputs, new[] { concatOutput }, ctx.GetNodeName(opType), "");
931
var
expNode = ctx.CreateNode(opType, concatOutput, expOutput, ctx.GetNodeName(opType), "");
935
var
sumNode = ctx.CreateNode(opType, expOutput, sumOutput, ctx.GetNodeName(opType), "");
942
var
divNode = ctx.CreateNode(opType, new[] { expOutput, sumOutput }, new[] { divOutput }, ctx.GetNodeName(opType), "");
Standard\Simple\SimpleTrainers.cs (1)
426
var
node = ctx.CreateNode(opType, notOutput, castOutput, ctx.GetNodeName(opType), "");
Microsoft.ML.Transforms (48)
GcnTransform.cs (16)
645
var
node = ctx.CreateNode(opType, srcVariableName, dstVariableName, ctx.GetNodeName(opType));
652
var
meanNode = ctx.CreateNode(opType, srcVariableName, meanOfInput, ctx.GetNodeName(opType), "");
657
var
subtractNode = ctx.CreateNode(opType, new[] { srcVariableName, meanOfInput }, new[] { inputMinusMean }, ctx.GetNodeName(opType), "");
663
var
absNode = ctx.CreateNode(opType, inputMinusMean, absOfInput, ctx.GetNodeName(opType), "");
667
var
sumOfAbsNode = ctx.CreateNode(opType, absOfInput, sumOfAbsOfInput, ctx.GetNodeName(opType), "");
671
var
l1Node = ctx.CreateNode(opType, new[] { inputMinusMean, sumOfAbsOfInput }, new[] { dstVariableName }, ctx.GetNodeName(opType), "");
678
var
squareNode = ctx.CreateNode(opType, new[] { inputMinusMean, two }, new[] { squareOfInput }, ctx.GetNodeName(opType), "");
682
var
sumOfSquaresNode = ctx.CreateNode(opType, squareOfInput, sumOfSquares, ctx.GetNodeName(opType), "");
687
var
squareRootNode = ctx.CreateNode(opType, sumOfSquares, squareRoot, ctx.GetNodeName(opType), "");
690
var
l2Node = ctx.CreateNode(opType, new[] { inputMinusMean, squareRoot }, new[] { dstVariableName }, ctx.GetNodeName(opType), "");
696
var
maxNode = ctx.CreateNode(opType, inputMinusMean, maxOfInput, ctx.GetNodeName(opType), "");
700
var
lMaxNode = ctx.CreateNode(opType, new[] { inputMinusMean, maxOfInput }, new[] { dstVariableName }, ctx.GetNodeName(opType), "");
708
var
squareOfInputMinusMeanNode = ctx.CreateNode(opType, new[] { inputMinusMean, two }, new[] { squareOfInputMinusMean }, ctx.GetNodeName(opType), "");
712
var
sumOfSquaresNode = ctx.CreateNode(opType, squareOfInputMinusMean, average, ctx.GetNodeName(opType), "");
717
var
stdDevNode = ctx.CreateNode(opType, average, stdDev, ctx.GetNodeName(opType), "");
721
var
lStdDevNode = ctx.CreateNode(opType, new[] { input, stdDev }, new[] { dstVariableName }, ctx.GetNodeName(opType), "");
MissingValueIndicatorTransformer.cs (1)
477
var
nanNode = ctx.CreateNode(opType, srcVariableName, dstVariableName, ctx.GetNodeName(opType), "");
MissingValueReplacing.cs (1)
886
var
node = ctx.CreateNode(opType, srcVariableName, dstVariableName, ctx.GetNodeName(opType));
Text\NgramTransform.cs (2)
795
var
castNode = ctx.CreateNode(opType, srcVariableName, castOutput, ctx.GetNodeName(opType), "");
803
var
node = ctx.CreateNode(opType, srcVariableName, dstVariableName, ctx.GetNodeName(opType), "");
Text\StopWordsRemovingTransformer.cs (2)
463
var
node = ctx.CreateNode(opType, srcVariableName, squeezeOutput, ctx.GetNodeName(opType), "");
1154
var
node = ctx.CreateNode(opType, srcVariableName, squeezeOutput, ctx.GetNodeName(opType), "");
Text\TextNormalizing.cs (1)
243
var
node = ctx.CreateNode(opType, srcVariableName, squeezeOutput, ctx.GetNodeName(opType), "");
Text\TokenizingByCharacters.cs (2)
245
var
node = ctx.CreateNode(opType, srcVariableName, tokenizerOutput, ctx.GetNodeName(opType), "com.microsoft");
266
var
castNode = ctx.CreateNode(opType, labelEncoderOutput, dstVariableName, ctx.GetNodeName(opType), "");
Text\WordEmbeddingsExtractor.cs (21)
444
var
nodeY = ctx.CreateNode("LabelEncoder", nameX, nameY, ctx.GetNodeName("LabelEncoder"));
452
var
nodeA = ctx.CreateNode("Equal", new[] { nameY, nameF }, new[] { nameA }, ctx.GetNodeName("Equal"), "");
456
var
nodeB = ctx.CreateNode("Cast", nameA, nameB, ctx.GetNodeName("Cast"), "");
461
var
nodeSMax = ctx.CreateNode("Scale", nameB, nameSMax, ctx.GetNodeName("Scale"), "");
466
var
nodeVMin = ctx.CreateNode("Cast", nameA, nameVMin, ctx.GetNodeName("Cast"), "");
470
var
nodeVMax = ctx.CreateNode("Cast", nameSMax, nameVMax, ctx.GetNodeName("Cast"), "");
477
var
nodePMin = ctx.CreateNode("Add", new[] { nameY, nameVMin }, new[] { namePMin }, ctx.GetNodeName("Add"), "");
480
var
nodePMax = ctx.CreateNode("Add", new[] { nameY, nameVMax }, new[] { namePMax }, ctx.GetNodeName("Add"), "");
484
var
nodeGMin = ctx.CreateNode("Gather", new[] { nameD, namePMin }, new[] { nameGMin }, ctx.GetNodeName("Gather"), "");
487
var
nodeGMax = ctx.CreateNode("Gather", new[] { nameD, namePMax }, new[] { nameGMax }, ctx.GetNodeName("Gather"), "");
491
var
nodeJ = ctx.CreateNode("ReduceMin", nameGMin, nameJ, ctx.GetNodeName("ReduceMin"), "");
495
var
nodeL = ctx.CreateNode("ReduceMax", nameGMax, nameL, ctx.GetNodeName("ReduceMax"), "");
502
var
nodeW = ctx.CreateNode("Gather", new[] { nameD, nameY }, new[] { nameW }, ctx.GetNodeName("Gather"), "");
506
var
nodeK = ctx.CreateNode("ReduceSum", nameW, nameK, ctx.GetNodeName("ReduceSum"), "");
511
var
nodeQ = ctx.CreateNode("Not", nameA, nameQ, ctx.GetNodeName("Not"), "");
515
var
nodeZ = ctx.CreateNode("Cast", nameQ, nameZ, ctx.GetNodeName("Cast"), "");
520
var
nodeR = ctx.CreateNode("ReduceSum", nameZ, nameR, ctx.GetNodeName("ReduceSum"), "");
525
var
nodeRF = ctx.CreateNode("Cast", nameR, nameRF, ctx.GetNodeName("Cast"), "");
530
var
nodeT = ctx.CreateNode("Clip", nameRF, nameT, ctx.GetNodeName("Clip"), "");
535
var
nodeE = ctx.CreateNode("Div", new[] { nameK, nameT }, new[] { nameE }, ctx.GetNodeName("Div"), "");
539
var
nodeP = ctx.CreateNode("Concat", new[] { nameJ, nameE, nameL }, new[] { nameP }, ctx.GetNodeName("Concat"), "");
Text\WordTokenizing.cs (2)
410
var
tokenizerNode = ctx.CreateNode(opType, ctx.GetVariableName(column.InputColumnName),
421
var
reshapeNode = ctx.CreateNode(opType, new[] { intermediateVar, shape }, new[] { reshapeOutput }, ctx.GetNodeName(opType), "");