Click or drag to resize

Session Class

https://www.emgu.com/wiki/index.php/Emgu_TF
API for driving Graph execution
Inheritance Hierarchy

Namespace:  Emgu.TF
Assembly:  Emgu.TF.Netstandard (in Emgu.TF.Netstandard.dll) Version: 2.6.0.1294
Syntax
public class Session : UnmanagedObject

The Session type exposes the following members.

Constructors
  NameDescription
Public methodSession(Graph, SessionOptions, Status)
Return a new execution session with the associated graph.
Public methodSession(String, String, SessionOptions, Buffer, Status)
Create a Session from a SavedModel. If successful, populates the internal graph with the contents of the Graph and with the MetaGraphDef of the loaded model.
Top
Properties
  NameDescription
Public propertyDisposed
Returns true if the object has been disposed.
(Inherited from DisposableObject.)
Public propertyGraph
The Graph of this session
Public propertyMetaGraphDefBuffer
The buffer that holds the MetaGraphDef if the session is created from a saved model.
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Top
Methods
  NameDescription
Public methodClose
Close a session. Contacts any other processes associated with the session, if applicable.
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release the unmanaged memory associated with this Session.
(Overrides DisposableObjectDisposeObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodListDevices
Lists all devices in a session
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodRun
Run the graph associated with the session starting with the supplied inputs (inputs[0,ninputs-1] with corresponding values in input_values[0,ninputs-1]).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_ptr
A pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Top
See Also