MLGruOptions constructor
MLGruOptions({
- MLOperand? bias,
- MLOperand? recurrentBias,
- MLOperand? initialHiddenState,
- bool? resetAfter,
- bool? returnSequence,
- MLRecurrentNetworkDirection? direction,
- MLRecurrentNetworkWeightLayout? layout,
- Iterable<
MLOperator> ? activations,
Implementation
factory MLGruOptions(
{MLOperand? bias,
MLOperand? recurrentBias,
MLOperand? initialHiddenState,
bool? resetAfter,
bool? returnSequence,
MLRecurrentNetworkDirection? direction,
MLRecurrentNetworkWeightLayout? layout,
Iterable<MLOperator>? activations}) =>
MLGruOptions._(
bias: bias ?? undefined,
recurrentBias: recurrentBias ?? undefined,
initialHiddenState: initialHiddenState ?? undefined,
resetAfter: resetAfter ?? true,
returnSequence: returnSequence ?? false,
direction:
direction?.value ?? MLRecurrentNetworkDirection.forward.value,
layout: layout?.value ?? MLRecurrentNetworkWeightLayout.zrn.value,
activations: activations ?? undefined);