1 override of AddAttribute
Microsoft.ML.OnnxConverter (1)
OnnxNodeImpl.cs (1)
32public override void AddAttribute(string argName, IEnumerable<long> value)
49 references to AddAttribute
Microsoft.ML.Data (13)
Transforms\ColumnConcatenatingTransformer.cs (1)
942node.AddAttribute("inputdimensions", inputList.Select(x => x.Value));
Transforms\KeyToValue.cs (1)
529node.AddAttribute("keys_int64s", keys);
Transforms\KeyToVector.cs (2)
724node.AddAttribute("cats_int64s", Enumerable.Range(1, categoryRange).Select(x => (long)x)); 731reduceNode.AddAttribute("axes", new long[] { 1 });
Transforms\ValueMapping.cs (8)
1097node.AddAttribute("keys_int64s", Array.ConvertAll(_valueMap.GetKeys<T>(), item => Convert.ToInt64(item))); 1131node.AddAttribute("keys_int64s", _valueMap.GetKeys<Int64>()); 1216node.AddAttribute("values_int64s", _valueMap.GetValues<long>()); 1220node.AddAttribute("values_int64s", _valueMap.GetValues<int>().Select(item => Convert.ToInt64(item))); 1226node.AddAttribute("values_int64s", _valueMap.GetValues<short>().Select(item => Convert.ToInt64(item))); 1232node.AddAttribute("values_int64s", _valueMap.GetValues<ulong>().Select(item => Convert.ToInt64(item))); 1238node.AddAttribute("values_int64s", _valueMap.GetValues<uint>().Select(item => Convert.ToInt64(item))); 1244node.AddAttribute("values_int64s", _valueMap.GetValues<ushort>().Select(item => Convert.ToInt64(item)));
Transforms\ValueToKeyMappingTransformer.cs (1)
889node.AddAttribute("values_int64s", termIds);
Microsoft.ML.FastTree (8)
FastTree.cs (8)
3114node.AddAttribute("nodes_treeids", nodesTreeids); 3115node.AddAttribute("nodes_nodeids", nodesIds); 3116node.AddAttribute("nodes_featureids", nodesFeatureIds); 3119node.AddAttribute("nodes_truenodeids", nodesTrueNodeIds); 3120node.AddAttribute("nodes_falsenodeids", nodesFalseNodeIds); 3122node.AddAttribute("target_treeids", classTreeIds); 3123node.AddAttribute("target_nodeids", classNodeIds); 3124node.AddAttribute("target_ids", classIds);
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
339reduceNodeX2.AddAttribute("axes", new long[] { 1 });
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
240node.AddAttribute("values_int64s", Enumerable.Range(0, slotNames.Length).Select(x => (long)x));
Microsoft.ML.StandardTrainers (6)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
996node.AddAttribute("classlabels_ints", Enumerable.Range(1, NumberOfClasses).Select(x => (long)x)); 1001unsqueezeNode.AddAttribute("axes", new long[] { 1 });
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (3)
523node.AddAttribute("axes", list); 528node.AddAttribute("axes", list); 546squeezeNode.AddAttribute("axes", new long[] { 2 });
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
938sumNode.AddAttribute("axes", list);
Microsoft.ML.Transforms (20)
GcnTransform.cs (5)
653meanNode.AddAttribute("axes", new long[] { 1 }); 668sumOfAbsNode.AddAttribute("axes", new long[] { 1 }); 683sumOfSquaresNode.AddAttribute("axes", new long[] { 1 }); 697maxNode.AddAttribute("axes", new long[] { 1 }); 713sumOfSquaresNode.AddAttribute("axes", new long[] { 1 });
Text\NgramTransform.cs (3)
825node.AddAttribute("ngram_counts", ngramCounts); 826node.AddAttribute("pool_int64s", ngramIds); 827node.AddAttribute("ngram_indexes", ngramIndexes);
Text\StopWordsRemovingTransformer.cs (4)
464node.AddAttribute("axes", new long[] { 0 }); 480node.AddAttribute("axes", new long[] { 0 }); 1155node.AddAttribute("axes", new long[] { 0 }); 1166node.AddAttribute("axes", new long[] { 0 });
Text\TextNormalizing.cs (2)
244node.AddAttribute("axes", new long[] { 1 }); 255node.AddAttribute("axes", new long[] { 1 });
Text\TokenizingByCharacters.cs (2)
254node.AddAttribute("axes", new long[] { 1 }); 263node.AddAttribute("values_int64s", charValues);
Text\WordEmbeddingsExtractor.cs (4)
492nodeJ.AddAttribute("axes", axes); 496nodeL.AddAttribute("axes", axes); 507nodeK.AddAttribute("axes", axes); 521nodeR.AddAttribute("axes", axes);