MCPcopy Create free account
hub / github.com/NVIDIA/DALI / from_device

Method from_device

include/dali/core/dev_buffer.h:110–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 void from_device(const T *source, size_t count, AccessOrder order = {}) {
111 clear();
112 resize(count);
113 copyD2D(data_.get(), source, size(), order);
114 }
115
116 template <typename ArrayLike>
117 if_array_like<ArrayLike> from_host(const ArrayLike &source, AccessOrder order = {}) {

Callers 1

TESTFunction · 0.80

Calls 4

copyD2DFunction · 0.85
resizeFunction · 0.70
sizeFunction · 0.70
getMethod · 0.45

Tested by 1

TESTFunction · 0.64