Table of Contents

Interface IContextualLayer<T>

Namespace
AiDotNet.Diffusion.Memory
Assembly
AiDotNet.dll

Interface for layers that accept context (conditioning).

public interface IContextualLayer<T> : ILayer<T>, IJitCompilable<T>, IDiagnosticsProvider, IWeightLoadable<T>

Type Parameters

T

The numeric type.

Inherited Members

Methods

Forward(Tensor<T>, Tensor<T>?)

Forward pass with context.

Tensor<T> Forward(Tensor<T> input, Tensor<T>? context)

Parameters

input Tensor<T>

Input tensor.

context Tensor<T>

Context tensor.

Returns

Tensor<T>

Output tensor.