SmartEngine  1.6.0
Public Member Functions | List of all members
SmartEngine::IGraphNode Class Referenceabstract

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

#include <GraphNode.h>

Inheritance diagram for SmartEngine::IGraphNode:
SmartEngine::IObject SmartEngine::IConv2DLayer SmartEngine::IGraphComponent SmartEngine::IGraphInput SmartEngine::ILoss SmartEngine::INeuronLayer SmartEngine::IParameter SmartEngine::IPoolingLayer SmartEngine::IUnpoolingLayer

Public Member Functions

virtual const char * GetName () const =0
 Returns the name of the graph node. More...
 
virtual int GetOutputDimension () const =0
 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...
 
virtual ObjectPtr< IMatrixExecute ()=0
 Synchronously execute the graph. The returned matrix is read-only. More...
 
virtual ObjectPtr< IMatrixGetLastExecutionResult ()=0
 Get the results of last execution of the graph. The returned matrix is read-only. More...
 
- Public Member Functions inherited from SmartEngine::IObject
virtual ObjectId GetId () const =0
 Returns the ID of this object. More...
 
virtual void AddRef () const =0
 Increments the internal reference count on this object. It is not common to use this method directly. More...
 
virtual void Release () const =0
 Decrements the internal reference count on this object. It is not common to use this method directly. More...
 
virtual int GetRefCount () const =0
 Returns the number of references to this object. More...
 
virtual void * QueryInterface (ObjectClassId id)=0
 Queries the object for an interface and returns a pointer to that interface if found. More...
 
void operator= (IObject const &x)=delete
 

Additional Inherited Members

- Public Attributes inherited from SmartEngine::IObject
 private
 
 __pad0__: IObject() {} IObject(IObject const&) = delete
 

Detailed Description

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

Member Function Documentation

◆ Execute()

virtual ObjectPtr<IMatrix> SmartEngine::IGraphNode::Execute ( )
pure virtual

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

◆ GetLastExecutionResult()

virtual ObjectPtr<IMatrix> SmartEngine::IGraphNode::GetLastExecutionResult ( )
pure virtual

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

◆ GetName()

virtual const char* SmartEngine::IGraphNode::GetName ( ) const
pure virtual

Returns the name of the graph node.

◆ GetOutputDimension()

virtual int SmartEngine::IGraphNode::GetOutputDimension ( ) const
pure virtual

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