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

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

Inheritance diagram for SmartEngine.NeuralNetworks.BufferInput:
SmartEngine.NeuralNetworks.GraphInput SmartEngine.NeuralNetworks.GraphNode SmartEngine.Object SmartEngine.Disposable

Classes

class  CInfo
 BufferInput constructor info More...
 

Public Member Functions

 BufferInput (CInfo cinfo)
 
unsafe void SetValues (float[] data)
 Sets the data of the tensor, specified in row major order. More...
 
- Public Member Functions inherited from SmartEngine.NeuralNetworks.GraphNode
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...
 

Additional Inherited Members

- Properties inherited from SmartEngine.NeuralNetworks.GraphNode
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

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

Member Function Documentation

◆ SetValues()

unsafe void SmartEngine.NeuralNetworks.BufferInput.SetValues ( float[]  data)

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.