TensorCopyHelper

Helpers & Utilities · AiDotNet.Helpers

Helper class for tensor copy operations.

For Beginners

When working with batched data in tensors, you often need to copy individual samples between tensors. This helper provides optimized methods for this common operation.

How It Works

TensorCopyHelper provides utility methods for copying data between tensors, particularly for copying individual samples from one tensor to another.

Methods

Method Summary
Tensor<T> CreateEmptyBatchLike(Tensor<T> source, int batchSize) Copies a single sample from one tensor to another.
void CopySample(Tensor<T> source, Tensor<T> dest, int sourceIndex, int destIndex)