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

Method size

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

Source from the content-addressed store, hash-verified

444 : WrapperBase<PD_IntArray>(int_array) {}
445
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());

Callers 15

PD_TensorGetNumDimsFunction · 0.45
PD_TensorGetDimFunction · 0.45
PD_TensorGetNumStridesFunction · 0.45
PD_TensorGetStrideFunction · 0.45
PD_TensorGetLoDFunction · 0.45
PD_TensorVectorToListFunction · 0.45

Calls 1

Tested by

no test coverage detected