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

A logical node in the AI graph. Some nodes, like NeuralNetwork, are composed of other nodes (neuron layers). More...

Inheritance diagram for SmartEngine.NeuralNetworks.GraphNode:
SmartEngine.Object SmartEngine.Disposable SmartEngine.NeuralNetworks.ActivationNode SmartEngine.NeuralNetworks.AddNode SmartEngine.NeuralNetworks.ChoiceNode SmartEngine.NeuralNetworks.ConcatNode SmartEngine.NeuralNetworks.Conv2DLayer SmartEngine.NeuralNetworks.DivideNode SmartEngine.NeuralNetworks.ExpNode SmartEngine.NeuralNetworks.ExtractNode SmartEngine.NeuralNetworks.GraphComponent SmartEngine.NeuralNetworks.GraphInput SmartEngine.NeuralNetworks.LengthNode SmartEngine.NeuralNetworks.LogNode SmartEngine.NeuralNetworks.Loss SmartEngine.NeuralNetworks.MaximumNode SmartEngine.NeuralNetworks.MinimumNode SmartEngine.NeuralNetworks.MultiplexerNode SmartEngine.NeuralNetworks.MultiplyNode SmartEngine.NeuralNetworks.NegateNode SmartEngine.NeuralNetworks.NeuronLayer SmartEngine.NeuralNetworks.NormalizeNode SmartEngine.NeuralNetworks.NormalNode SmartEngine.NeuralNetworks.Parameter SmartEngine.NeuralNetworks.PoolingLayer SmartEngine.NeuralNetworks.Rotate2DNode SmartEngine.NeuralNetworks.ScalarValueNode SmartEngine.NeuralNetworks.StopGradientNode SmartEngine.NeuralNetworks.SubtractNode SmartEngine.NeuralNetworks.UnpoolingLayer

Classes

class  CInfo
 Constructor info More...
 

Public Member Functions

Matrix Execute ()
 Synchronously execute the graph. The returned matrix is read-only. More...
 
IEnumerator RetrieveOutputAsync ()
 Asynchronously execute the graph. The output of the graph can be retrieved with the LastExecutionResult property when the returned enumerator completes. More...
 
- 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

string Name [get]
 Returns the name of the graph node. More...
 
Matrix LastExecutionResult [get]
 Get the results of last execution of the graph. The returned matrix is read-only. More...
 
int OutputDimension [get]
 Returns the dimension of a single row of this node's output. The Output property's length will be a multiple of this value. More...
 

Detailed Description

A logical node in the AI graph. Some nodes, like NeuralNetwork, are composed of other nodes (neuron layers).

Member Function Documentation

◆ Execute()

Matrix SmartEngine.NeuralNetworks.GraphNode.Execute ( )

Synchronously execute the graph. The returned matrix is read-only.

◆ RetrieveOutputAsync()

IEnumerator SmartEngine.NeuralNetworks.GraphNode.RetrieveOutputAsync ( )

Asynchronously execute the graph. The output of the graph can be retrieved with the LastExecutionResult property when the returned enumerator completes.

Returns
An IEnumerator that can be used in a Coroutine. The output is only valid after the enumerator finishes.

Property Documentation

◆ LastExecutionResult

Matrix SmartEngine.NeuralNetworks.GraphNode.LastExecutionResult
get

Get the results of last execution of the graph. The returned matrix is read-only.

◆ Name

string SmartEngine.NeuralNetworks.GraphNode.Name
get

Returns the name of the graph node.

◆ OutputDimension

int SmartEngine.NeuralNetworks.GraphNode.OutputDimension
get

Returns the dimension of a single row of this node's output. The Output property's length will be a multiple of this value.