MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / TensorCopy

Function TensorCopy

paddle/fluid/framework/tensor_util.cc:280–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void TensorCopy(const DenseTensor& src,
281 const Place& dst_place,
282 DenseTensor* dst) {
283 TensorCopyImpl<DenseTensor>(src, dst_place, dst);
284 dst->set_strides(src.strides());
285}
286void TensorCopy(const DenseTensor& src,
287 const Place& dst_place,
288 const phi::DeviceContext& ctx,

Callers 15

BCastParamsToDevicesMethod · 0.85
MergeToRootScopeMethod · 0.85
TransDataDeviceFunction · 0.85
GetValueFunction · 0.85
MergeDenseParamMethod · 0.85
TensorFromStreamFunction · 0.85
tensor_util.ccFile · 0.85
InitTrainerEnvMethod · 0.85
CopyVariableFunction · 0.85
CreateThreadScopeMethod · 0.85
FinalizeMethod · 0.85
ApplyImplMethod · 0.85

Calls 2

set_stridesMethod · 0.45
stridesMethod · 0.45

Tested by 4

TransformTestFunction · 0.68
CopySameTensorTestMainFunction · 0.68
TESTFunction · 0.68
TestTensorUtilsFunction · 0.68