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

Function TransDataBackend

paddle/phi/api/lib/data_transform.cc:673–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671 return paddle::none;
672}
673void TransDataBackend(const phi::DenseTensor* tensor,
674 Backend target_backend,
675 phi::DenseTensor* out) {
676 if (tensor && tensor->initialized()) {
677 *out = TransDataPlace(*tensor, phi::TransToPhiPlace(target_backend));
678 }
679}
680
681void TransDataBackend(const std::vector<phi::DenseTensor*>& tensors,
682 Backend target_backend,

Callers 3

add_n_implFunction · 0.85
fused_gemm_epilogue_implFunction · 0.85
cudnn_lstm_grad_implFunction · 0.85

Calls 6

TransDataPlaceFunction · 0.85
TransToPhiPlaceFunction · 0.85
initializedMethod · 0.45
sizeMethod · 0.45
valueMethod · 0.45
mutable_valueMethod · 0.45

Tested by

no test coverage detected