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

Input node into the AI graph. Allows for specifying a tensor input. More...

#include <GraphInput.h>

Inheritance diagram for SmartEngine::IBufferInput:
SmartEngine::IGraphInput SmartEngine::IGraphNode SmartEngine::IObject

Public Member Functions

virtual int64 GetRowCount ()=0
 Returns the number of rows in the tensor data. More...
 
virtual void SetValues (const float *buffer, int64 bufferCount)=0
 Sets the data of the tensor, specified in row major order. More...
 
virtual void ZeroData ()=0
 Zeros out all tensor data. More...
 
- Public Member Functions inherited from SmartEngine::IGraphNode
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

Input node into the AI graph. Allows for specifying a tensor input.

Member Function Documentation

◆ GetRowCount()

virtual int64 SmartEngine::IBufferInput::GetRowCount ( )
pure virtual

Returns the number of rows in the tensor data.

◆ SetValues()

virtual void SmartEngine::IBufferInput::SetValues ( const float *  buffer,
int64  bufferCount 
)
pure virtual

Sets the data of the tensor, specified in row major order.

Parameters
dataThe length of data must be a multiple of the dimension of this node. If the node dimension is 5 and there are 10 values in data, then a tensor of 2 rows and 5 columns will be constructed.

◆ ZeroData()

virtual void SmartEngine::IBufferInput::ZeroData ( )
pure virtual

Zeros out all tensor data.