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

Method GetData

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

Source from the content-addressed store, hash-verified

446 size_t size() const { return PD_IntArrayGetElementCount(raw_data()); }
447
448 std::vector<int64_t> GetData() const {
449 auto list = PD_IntArrayGetDataPointer(raw_data());
450 auto data = reinterpret_cast<int64_t*>(list.data);
451 std::vector<int64_t> ret(data, data + list.size);
452 return ret;
453 }
454};
455
456class Place : WrapperBase<PD_Place> {

Callers 15

AffineGridInferMetaFunction · 0.45
CropInferMetaFunction · 0.45
ExpandInferMetaFunction · 0.45
MedianInferMetaFunction · 0.45
NanmedianInferMetaFunction · 0.45
Pad3dInferMetaFunction · 0.45
Pool2DInferMetaFunction · 0.45
ReshapeInferMetaFunction · 0.45
ReverseInferMetaFunction · 0.45

Calls 1

Tested by

no test coverage detected