86 references to CopyTo
Microsoft.ML.Core (2)
Utilities\VBufferUtils.cs (2)
453src.CopyTo(ref dst); 467src.CopyTo(ref dst);
Microsoft.ML.Core.Tests (2)
UnitTests\TestVBuffer.cs (2)
94a.CopyTo(ref aOrig); 553a.CopyTo(ref aa);
Microsoft.ML.Data (29)
Data\DataViewUtils.cs (1)
973Values[_index].CopyTo(ref value);
DataLoadSave\Binary\BinaryLoader.cs (1)
580ValueGetter<VBuffer<T>> getter = (ref VBuffer<T> value) => Value.CopyTo(ref value);
DataLoadSave\Text\TextLoader.cs (1)
1055metadataBuilder.AddSlotNames(names.Length, (ref VBuffer<ReadOnlyMemory<char>> value) => names.CopyTo(ref value));
DataView\ArrayDataViewBuilder.cs (1)
496src.CopyTo(ref dst);
DataView\DataViewConstructionUtils.cs (2)
363buf.CopyTo(ref dst); 1007return (ref VBuffer<TDst> dst) => castValue.CopyTo(ref dst);
DataView\Transposer.cs (2)
413cached.CopyTo(ref dst); 700_cbuff[_slotCurr].Buffer.CopyTo(ref dst);
Deprecated\Vector\VBufferMathUtils.cs (3)
201dst.CopyTo(ref res); 227a.CopyTo(ref dst); 386src.CopyTo(ref dst);
Evaluators\ClusteringEvaluator.cs (1)
363clusterCentroids[i].CopyTo(ref _clusterCentroids[i]);
Evaluators\EvaluatorUtils.cs (4)
498reconciledSlotNames.CopyTo(ref dst); 618keyNamesVBuffer.CopyTo(ref dst); 686keyNamesVBuffer.CopyTo(ref dst); 988(in VBuffer<TSrc> src, ref VBuffer<TSrc> dst) => src.CopyTo(ref dst));
Evaluators\MultiOutputRegressionEvaluator.cs (2)
496label.CopyTo(ref dst); 506score.CopyTo(ref dst);
Scorers\ClusteringScorer.cs (1)
122score.CopyTo(ref dst);
Scorers\MulticlassClassificationScorer.cs (2)
154ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst); 590score.CopyTo(ref dst);
Transforms\Hashing.cs (1)
1349_parent._keyValues[i].CopyTo(ref dst);
Transforms\NAFilter.cs (1)
373Src.CopyTo(ref dst);
Transforms\NormalizeColumn.cs (4)
508src.CopyTo(ref dst); 515src.CopyTo(ref dst); 628src.CopyTo(ref dst); 634src.CopyTo(ref dst);
Transforms\RowShufflingTransformer.cs (1)
407src.CopyTo(ref dst);
Transforms\ValueMapping.cs (1)
959valueRef.CopyTo(ref dest);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1304(in VBuffer<T1> src, ref VBuffer<T1> dst) => src.CopyTo(ref dst);
Microsoft.ML.KMeansClustering (3)
KMeansModelParameters.cs (2)
94centroids[i].CopyTo(ref _centroids[i]); 285_centroids[i].CopyTo(ref centroids[i]);
KMeansPlusPlusTrainer.cs (1)
966clusters[i].CopyTo(ref centroids[i]);
Microsoft.ML.PCA (2)
PcaTrainer.cs (2)
667_eigenVectors[i].CopyTo(ref vectors[i]); 675_mean.CopyTo(ref mean);
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
130InitMapMurmurHashV2(vbuf, new VectorDataViewType(itemType, vals.Length), numberOfBits, vbuf.CopyTo);
Microsoft.ML.StandardTrainers (38)
LdSvm\LdSvmTrainer.cs (6)
380tempW[i].CopyTo(ref w[i]); 383tempThetaPrime[i].CopyTo(ref thetaPrime[i]); 388tempTheta[i].CopyTo(ref theta[i]); 437w[i].CopyTo(ref tempW[i]); 439thetaPrime[i].CopyTo(ref tempThetaPrime[i]); 455theta[i].CopyTo(ref tempTheta[i]);
Optimizer\DifferentiableFunction.cs (2)
106tempGrad.CopyTo(ref _tempGrads[chunkIndex]); 136_tempGrads[c].CopyTo(ref gradient);
Optimizer\L1Optimizer.cs (1)
161_steepestDescDir.CopyTo(ref _dir);
Optimizer\LineSearch.cs (1)
467_c3.CopyTo(ref grad);
Optimizer\Optimizer.cs (3)
209initial.CopyTo(ref _x); 315_steepestDescDir.CopyTo(ref _dir); 660state.X.CopyTo(ref result);
Optimizer\SgdOptimizer.cs (7)
174initial.CopyTo(ref x); 320initial.CopyTo(ref _point); 351_newPoint.CopyTo(ref _point); 352_newGrad.CopyTo(ref _grad); 368initial.CopyTo(ref prev); 377newPoint.CopyTo(ref prev); 381lineFunc.NewPoint.CopyTo(ref result);
Standard\LinearModelParameters.cs (5)
281features.CopyTo(ref contributions); 335first.Weight.CopyTo(ref weights); 379subBuilder.AddSlotNames(Weight.Length, (ref VBuffer<ReadOnlyMemory<char>> dst) => names.CopyTo(ref dst)); 383builder.Add("Weights", colType, (ref VBuffer<float> dst) => Weight.CopyTo(ref dst), subBuilder.ToAnnotations()); 399Weight.CopyTo(ref weights);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
516weights[iClass].CopyTo(ref Weights[iClass]); 1034Weights[i].CopyTo(ref weights[i]);
Standard\ModelStatistics.cs (4)
583builder.Add("Estimate", colType, (ref VBuffer<float> dst) => estimate.CopyTo(ref dst), subMeta); 584builder.Add("StandardError", colType, (ref VBuffer<float> dst) => stdErr.CopyTo(ref dst), subMeta); 585builder.Add("ZScore", colType, (ref VBuffer<float> dst) => zScore.CopyTo(ref dst), subMeta); 586builder.Add("PValue", colType, (ref VBuffer<float> dst) => pValue.CopyTo(ref dst), subMeta);
Standard\Online\AveragedLinear.cs (1)
164Weights.CopyTo(ref TotalWeights);
Standard\Online\AveragedPerceptron.cs (2)
138Weights.CopyTo(ref weights); 143TotalWeights.CopyTo(ref weights);
Standard\Online\OnlineGradientDescent.cs (2)
115Weights.CopyTo(ref weights); 120TotalWeights.CopyTo(ref weights);
Standard\SdcaBinary.cs (1)
1016firstWeights.CopyTo(ref bestWeights[0]);
Standard\SdcaMulticlass.cs (1)
450weights[iClass].CopyTo(ref bestWeights[iClass]);
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
76(ref VBuffer<ReadOnlyMemory<char>> value) => { upstreamOperatorNames.CopyTo(ref value); });
Microsoft.ML.Tests (2)
Transformers\HashTests.cs (2)
166builder.Add("Foo", new VectorDataViewType(type, vecLen), (ref VBuffer<T> dst) => denseVec.CopyTo(ref dst)); 197builder.Add("Foo", new VectorDataViewType(type, vecLen), (ref VBuffer<T> dst) => sparseVec.CopyTo(ref dst));
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
717ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst);
NasBert\NerTrainer.cs (1)
360ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst);
NasBert\TextClassificationTrainer.cs (1)
296ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst);
Microsoft.ML.Transforms (2)
PermutationFeatureImportance.cs (1)
204src.Features.CopyTo(ref dst.Features);
Text\NgramHashingTransformer.cs (1)
623_parent._slotNames[i].CopyTo(ref dst);