Interface IContextualLayer<T>
Interface for layers that accept context (conditioning).
public interface IContextualLayer<T> : ILayer<T>, IJitCompilable<T>, IDiagnosticsProvider, IWeightLoadable<T>
Type Parameters
TThe numeric type.
- Inherited Members
Methods
Forward(Tensor<T>, Tensor<T>?)
Forward pass with context.
Tensor<T> Forward(Tensor<T> input, Tensor<T>? context)
Parameters
inputTensor<T>Input tensor.
contextTensor<T>Context tensor.
Returns
- Tensor<T>
Output tensor.