Method Execute
Execute(Tensor[], ExecutionContext)
Executes the layer using the operations and variables from the ExecutionContext
and returns the output tensor.
If the layer has more than one output, output tensors are saved to variables.
Declaration
public override Tensor Execute(Tensor[] inputTensors, ExecutionContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Tensor[] | inputTensors | The input tensor for the execution. |
ExecutionContext | ctx | The execution context with the backend and variables for the execution. |
Returns
Type | Description |
---|---|
Tensor | The first output tensor of the execution. |