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

Method DenseTensor

paddle/phi/core/dense_tensor.cc:48–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47DenseTensor::~DenseTensor() = default;
48DenseTensor::DenseTensor(Allocator* a, const DenseTensorMeta& meta)
49 : meta_(meta), holder_(a->Allocate(SizeOf(dtype()) * numel())) {}
50
51DenseTensor::DenseTensor(Allocator* a, DenseTensorMeta&& meta)
52 : meta_(meta), holder_(a->Allocate(SizeOf(dtype()) * numel())) {}

Callers 15

_to_LodTensorFunction · 0.45
_load_dense_tensorFunction · 0.45
_convert_scale2tensorMethod · 0.45
__call__Method · 0.45
_to_lodtensorFunction · 0.45
_rebuild_cuda_tensorFunction · 0.45
_rebuild_xpu_tensorFunction · 0.45
_thread_loopMethod · 0.45
_thread_loopMethod · 0.45
numpy2lodtensorFunction · 0.45
__thread_main__Method · 0.45

Calls 6

SizeOfFunction · 0.85
CopyStoragePropertiesFunction · 0.85
metaMethod · 0.80
dtypeFunction · 0.70
numelFunction · 0.70
AllocateMethod · 0.45

Tested by 15

test_get_setMethod · 0.36
test_allocateMethod · 0.36
append_lod_tensorMethod · 0.36
test_feed_fetchMethod · 0.36
check_with_placeMethod · 0.36
test_tensor_ptrMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
feed_varMethod · 0.36