SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
Memory-allocation functions

Functions

eErrorType SR_LoadClsTestNetworkInGPU (ClsTestHandle handle, int GPUNumber, int batchSize=1)
 Allocate required cpu & gpu memory. More...
 
eErrorType SR_LoadDetTestNetworkInGPU (DetTestHandle handle, int GPUNumber)
 Allocate required cpu & gpu memory. More...
 
eErrorType SR_LoadOCRTestNetworkInGPU (OCRTestHandle handle, int GPUNumber)
 Allocate required cpu & gpu memory. More...
 
eErrorType SR_LoadSegTestNetworkInGPU (SegTestHandle handle, int GPUNumber, int batchSize=1)
 Allocate required cpu & gpu memory. More...
 

Detailed Description

검사에 필요한 cpu & gpu 메모리를 할당합니다.
만약 이용가능한 메모리가 부족하다면 eErrorType::OUT_OF_GPU_MEMORY 에러코드를 반환합니다.

Function Documentation

◆ SR_LoadClsTestNetworkInGPU()

eErrorType SR_LoadClsTestNetworkInGPU ( ClsTestHandle  handle,
int  GPUNumber,
int  batchSize = 1 
)

Allocate required cpu & gpu memory.

For batch-inspection, batchSize should be set larger than 1 to get reasonable performance.

Parameters
handleclassification file handler
GPUNumbergpu index to use for inspection (ex, 0, 1, ...)
batchSizemaximum number of images to inspect in once
Examples
ExampleClsErrorHandling.cpp, ExampleClsRuntime.cpp, ExampleClsRuntimeBatchInspection.cpp, ExampleClsRuntimeSimple.cpp, and ExampleSeg+ClsRuntime.cpp.

◆ SR_LoadDetTestNetworkInGPU()

eErrorType SR_LoadDetTestNetworkInGPU ( DetTestHandle  handle,
int  GPUNumber 
)

Allocate required cpu & gpu memory.

Parameters
handledetection file handler
GPUNumbergpu index to use for inspection (ex, 0, 1, ...)
Examples
ExampleDetErrorHandling.cpp, ExampleDetRuntime.cpp, and ExampleDetRuntimeSimple.cpp.

◆ SR_LoadOCRTestNetworkInGPU()

eErrorType SR_LoadOCRTestNetworkInGPU ( OCRTestHandle  handle,
int  GPUNumber 
)

Allocate required cpu & gpu memory.

Parameters
handleOCR file handler
GPUNumbergpu index to use for inspection (ex, 0, 1, ...)

◆ SR_LoadSegTestNetworkInGPU()

eErrorType SR_LoadSegTestNetworkInGPU ( SegTestHandle  handle,
int  GPUNumber,
int  batchSize = 1 
)

Allocate required cpu & gpu memory.

For batch-inspection, batchSize should be set larger than 1 to get reasonable performance.

Parameters
handlesegmentation file handler
GPUNumbergpu index to use for inspection (ex, 0, 1, ...)
batchSizemaximum number of images to inspect in once
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegErrorHandling.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, ExampleSegRuntimeMultiPage.cpp, ExampleSegRuntimeSimple.cpp, and ExampleSuperResolution+SegRuntime.cpp.