SmartEngine  1.6.0
Public Member Functions | Properties | List of all members
SmartEngine.NeuralNetworks.Context Class Reference

Every node in the AI graph must belong to the same context. More...

Inheritance diagram for SmartEngine.NeuralNetworks.Context:
SmartEngine.Object SmartEngine.Disposable

Public Member Functions

 Context (DeviceType device=DeviceType.Default)
 
- Public Member Functions inherited from SmartEngine.Object
void AddRef ()
 Increments the internal reference count on this object. It is not common to use this method directly. More...
 
void Release ()
 Decrements the internal reference count on this object. It is not common to use this method directly. More...
 
- Public Member Functions inherited from SmartEngine.Disposable
void Dispose ()
 Cleans up any internal state. It is not safe to use an object after it has been disposed. More...
 

Properties

DeviceType DeviceType [get]
 Returns the exact device type that was created. This might be different from what was requested due to platform availabilities. More...
 

Detailed Description

Every node in the AI graph must belong to the same context.

Before the context is created, a check is done for a valid license, loading from the default location. If you want to override this behavior, call License.LoadDefaultLicense() prior to creating a context.

Property Documentation

◆ DeviceType

DeviceType SmartEngine.NeuralNetworks.Context.DeviceType
get

Returns the exact device type that was created. This might be different from what was requested due to platform availabilities.