Interface IModelExecutionsReporter
Interfaces for model execution reporter use .ToString() to convert to text representation
Namespace: Unity.Barracuda
Syntax
public interface IModelExecutionsReporter
Methods
AddLayerDispatch(DispatchInfo)
Add a dispatch to current layer dispatch information
Declaration
void AddLayerDispatch(DispatchInfo dispatchInfo)
Parameters
Type | Name | Description |
---|---|---|
DispatchInfo | dispatchInfo |
GenerateStringReport(Boolean)
Return a string representation of the executions tracked so far. if true report will be formatted as a spreadSheet.
Declaration
string GenerateStringReport(bool spreadSheetFormat)
Parameters
Type | Name | Description |
---|---|---|
Boolean | spreadSheetFormat |
Returns
Type | Description |
---|---|
String |
LayerExecutionCompleted()
Mark a layer execution as completed
Declaration
void LayerExecutionCompleted()
LayerExecutionStarted(Layer)
Mark a layer execution as started layer
Declaration
void LayerExecutionStarted(Layer layer)
Parameters
Type | Name | Description |
---|---|---|
Layer | layer |
ModelExecutionCompleted()
Mark the model execution as completed
Declaration
void ModelExecutionCompleted()
ModelExecutionStarted()
Mark the model execution as started
Declaration
void ModelExecutionStarted()
SetLayerALUAndMemStats(Int64, Int64)
Set a layer theoretical numbers of ALU and memory bandwidth number of theoretical ALU operations number of theoretical bandwidth in bytes
Declaration
void SetLayerALUAndMemStats(long alu, long bytes)
Parameters
Type | Name | Description |
---|---|---|
Int64 | alu | |
Int64 | bytes |
SetLayerSummary(String)
Set a layer operation summary layer summary
Declaration
void SetLayerSummary(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message |
TakeMemorySnapshot(IVars, String, Layer)
Take a memory snapshot IVars containing memory information context of the snapshot optional layer of the snapshot
Declaration
void TakeMemorySnapshot(IVars vars, string context, Layer layer = null)
Parameters
Type | Name | Description |
---|---|---|
IVars | vars | |
String | context | |
Layer | layer |