We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 907d9f2 + cec6d0b commit 93c0fb6Copy full SHA for 93c0fb6
runtime/core/named_data_map.h
@@ -42,6 +42,18 @@ class ET_EXPERIMENTAL NamedDataMap {
42
ET_NODISCARD virtual Result<FreeableBuffer> get_data(
43
const char* fqn) const = 0;
44
45
+ /**
46
+ * Loads data corresponding to the fqn into the provided buffer.
47
+ *
48
+ * @param fqn Fully qualified name of the tensor.
49
+ * @param size The number of bytes to load.
50
+ * @param buffer The buffer to load the data into. Must point to at least
51
+ * `size` bytes of memory.
52
+ * @return An error code on if the load was successful.
53
+ */
54
+ ET_NODISCARD virtual Error
55
+ load_data_into(const char* fqn, size_t size, void* buffer);
56
+
57
/**
58
* Get the number of keys in the NamedDataMap.
59
*
0 commit comments