set_release
Function
Sets whether to release the data memory for the input tensor object.
C++ Prototype
void SetRelease(bool releaseFlag)
Python Prototype
set_release(release_flag)
Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
release_flag |
Mandatory |
Flag indicating whether to release the data memory |
Valid bool type |
Usage Example
Specify whether to release the memory (typically set to False). This ensures the tensor is released internally and does not require destruction with the inference tensor object.
1 | infer_tensor.set_release(False) |
Parent topic: InferTensor