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

Method offset

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

Source from the content-addressed store, hash-verified

162 }
163
164 size_t offset() const {
165 C_Status status;
166 auto offset = PD_TensorGetOffset(raw_data(), &status);
167 PD_CHECK_STATUS(status);
168 return offset;
169 }
170
171 std::vector<int64_t> dims() const {
172 C_Status status;

Callers 15

ViewShapeKernelFunction · 0.45
SliceTensorFunction · 0.45
RestrideSrcFunction · 0.45
accumToSmemMethod · 0.45
loadFunction · 0.45
StridedCopyKernelFunction · 0.45
TransposeStridedKernelFunction · 0.45
AsComplexStridedKernelFunction · 0.45
ViewShapeStridedKernelFunction · 0.45
ViewDtypeKernelFunction · 0.45
TensorUnfoldKernelFunction · 0.45
SliceStridedKernelFunction · 0.45

Calls 1

PD_TensorGetOffsetFunction · 0.85

Tested by

no test coverage detected