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