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

Function NeedTransform2Contiguous

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

Source from the content-addressed store, hash-verified

65}
66
67inline bool NeedTransform2Contiguous(bool is_stride_kernel,
68 bool is_contiguous) {
69 return FLAGS_use_stride_kernel && !is_stride_kernel && !is_contiguous;
70}
71
72inline phi::DenseTensor TransDataLayout(const phi::DenseTensor& tensor,
73 DataLayout layout) {

Callers 4

TransformDataFunction · 0.70
PrepareDataFunction · 0.70
PrepareDataForDistTensorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected