MLGruOptions constructor

MLGruOptions({
  1. MLOperand? bias,
  2. MLOperand? recurrentBias,
  3. MLOperand? initialHiddenState,
  4. bool? resetAfter,
  5. bool? returnSequence,
  6. MLRecurrentNetworkDirection? direction,
  7. MLRecurrentNetworkWeightLayout? layout,
  8. 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);