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

Method data

paddle/phi/capi/include/wrapper_base.h:276–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274
275 template <typename T>
276 T* data() const {
277 C_Status status;
278 auto ptr = PD_TensorGetDataPointer(raw_data(), &status);
279 PD_CHECK_STATUS(status);
280 return static_cast<T*>(ptr);
281 }
282
283 DenseTensor& ShareDataWith(const DenseTensor& src) {
284 C_Status status;

Callers 15

PD_TensorGetDataPointerFunction · 0.45
PD_TensorGetLoDFunction · 0.45
PD_TensorVectorToListFunction · 0.45
PD_ListInt32AttrFunction · 0.45
PD_ListInt64AttrFunction · 0.45
PD_ListFloatAttrFunction · 0.45

Calls 1

PD_TensorGetDataPointerFunction · 0.85

Tested by

no test coverage detected