AddResource
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/es_c_graph_builder.h>
- Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a
Function Usage
Transfers the input resources to EsCGraphBuilder for management.
Prototype
1 | T *AddResource(std::unique_ptr<T> value, std::function<void(void*)> deleter = DefaultDeleter<T>) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
value |
Input |
Resources to be transferred. |
deleter |
Input |
Resource destructor. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
T * (type of the resource to be transferred) |
Pointer to the resource holder. |
Constraints
None
Parent topic: EsCGraphBuilder