Method PeekOutput
PeekOutput()
Returns a reference to the default output tensor. This is non-blocking.
For models with more than one output this returns a reference to the first output tensor.
The reference is valid only until you call Execute()
or Dispose()
on the worker.
If you want to dispose of the worker but keep the tensor, use FinishExecutionAndDownloadOutput()
instead, or use TakeOwnership()
on the output tensor.
Declaration
public virtual Tensor PeekOutput()
Returns
Type | Description |
---|---|
Tensor | The output tensor. |
Implements
PeekOutput(string)
Returns a reference to an output tensor with a given name
. This is non-blocking.
The reference is valid only until you call Execute()
or Dispose()
on the worker.
If you want to dispose of the worker but keep the tensor, use FinishExecutionAndDownloadOutput()
instead, or use TakeOwnership()
on the output tensor.
Declaration
public virtual Tensor PeekOutput(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the output tensor to peek. |
Returns
Type | Description |
---|---|
Tensor | The output tensor. |