AllocRawDataMsg
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Allocates a continuous memory block based on the input size to carry data of the RawData type.
Prototype
1 | virtual std::shared_ptr<FlowMsg> AllocRawDataMsg(int64_t size, uint32_t align = 512U) |
Command-Line Options
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Size of the allocated memory. |
align |
Input |
Alignment size for the allocated memory address. The value range is [32, 64, 128, 256, 512, 1024]. |
Returns
Allocated FlowMsg pointer.
Troubleshooting
If no tensor pointer can be allocated, NULL is returned.
Constraints
None
Parent topic: GetOutputNum