SqueezeBrains SDK 1.13
sb_cs::Sb Class Reference

Sb Main Class More...

#include <cs_sb.h>

Static Public Member Functions

static SbError Init (String ^ license_file)
 Init the SB Library. The function initializes all the functionalities of the library including the license. More...
 
static SbError InitDl (String^ search_path)
 Init the Deep Learning SB Library. The function enables the SbProject::Detection and SVL functions for the SbProjectType.SB_PROJECT_TYPE_DEEP_CORTEX "Deep Cortex" and SbProjectType.SB_PROJECT_TYPE_DEEP_SURFACE "Deep Surface" projects. More...
 
static SbError Release ()
 Releases all the resources allocated in the library More...
 
static SbError CheckMemoryLeak ()
 Checks if the library has a memory leak. More...
 
static SbError CheckMemoryLeakReset ()
 Resets the memory leak control More...
 
static SbInfo GetInfo (int gpu_info)
 The function gets information of the sb library and the available computational devices
More...
 
static String FormatDeviceType (SbDeviceType value)
 Returns the device type description.
 

Static Public Attributes

static String SbInitOnlyHwLicenseKey = SB_INIT_ONLY_HW_LICENSE_KEY
 
See also
SB_INIT_ONLY_HW_LICENSE_KEY

 
static String SbInitOnlySbLicenseKey = SB_INIT_ONLY_SB_LICENSE_KEY
 
See also
SB_INIT_ONLY_SB_LICENSE_KEY

 
static String SbInitNoLicenseKey = SB_INIT_NO_LICENSE_KEY
 
See also
SB_INIT_NO_LICENSE_KEY

 

Detailed Description

Sb Main Class

Definition at line 373 of file cs_sb.h.

Member Function Documentation

◆ CheckMemoryLeak()

static SbError sb_cs::Sb::CheckMemoryLeak ( )
static

Checks if the library has a memory leak.

Returns
If successful, returns SbError.SB_ERR_NONE. Otherwise, it returns an error code SbError.
See also
sb_malloc_check_memory_leak

◆ CheckMemoryLeakReset()

static SbError sb_cs::Sb::CheckMemoryLeakReset ( )
static

Resets the memory leak control

Returns
If successful, returns SbError.SB_ERR_NONE. Otherwise, it returns an error code SbError.
See also
sb_malloc_check_memory_leak_reset

◆ GetInfo()

static SbInfo sb_cs::Sb::GetInfo ( int  gpu_info)
static

The function gets information of the sb library and the available computational devices

Returns
An instance to the SbInfo class or null in case of memory error.
The instance returned is valid only if the SbInfo.Error() is equal to SbError::SB_ERR_NONE, otherwise an error occurred.
You must call the Dispose() method to free all the resources of the returned instance.
See also
sb_get_info

◆ Init()

static SbError sb_cs::Sb::Init ( String ^  license_file)
static

Init the SB Library. The function initializes all the functionalities of the library including the license.

Parameters
license_file
Returns
If successful, returns SbError.SB_ERR_NONE. Otherwise, it returns an error code SbError.
See also
sb_init
Sb::SbInitOnlyHwLicenseKey
Sb::SbInitOnlySbLicenseKey
Sb::SbInitNoLicenseKey

◆ InitDl()

static SbError sb_cs::Sb::InitDl ( String^  search_path)
static

Init the Deep Learning SB Library. The function enables the SbProject::Detection and SVL functions for the SbProjectType.SB_PROJECT_TYPE_DEEP_CORTEX "Deep Cortex" and SbProjectType.SB_PROJECT_TYPE_DEEP_SURFACE "Deep Surface" projects.

Parameters
search_pathAdditional paths used to specify where SB Deep Learning framework dependencies are located
Returns
If successful, returns SbError.SB_ERR_NONE. If libraries dependencies are not satisfied, SbError::SB_ERR_LIBRARY_DEPENDENCIES Otherwise, it returns an error code SbError.
See also
sb_init_dl
Sb::Init

◆ Release()

static SbError sb_cs::Sb::Release ( )
static

Releases all the resources allocated in the library

Returns
If successful, returns SbError.SB_ERR_NONE. Otherwise, it returns an error code SbError.
See also
sb_release

The documentation for this class was generated from the following file: