Welcome to mirror list, hosted at ThFree Co, Russian Federation.

THCApply.cu « THC « lib - github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3ee9d51e138d9ed3f515b25927eb6ac5d574975f (plain)
1
2
3
4
5
6
7
8
9
10
#include "THCApply.cuh"

// Implementation of copyIgnoringOverlaps, defined after pointwiseApply2.
void THCudaTensor_copyIgnoringOverlaps(THCState* state,
                                       THCudaTensor* dst,
                                       THCudaTensor* src) {
  THCudaTensor_pointwiseApply2(state, dst, src, CopyOp<float>(),
                               ReadOnly, // ignore overwrites
                               ReadOnly);
}