class_docstr: Position-wise Feed-Forward Network
class_docstr_tok: ["Position-wise","Feed-Forward","Network"]
code: def __init__(
      self,
      d_model: int,
      ffd: int,
      dropout: float = 0.1,
      activation_fct: Callable[[Any], Any] = nn.ReLU(),
  ) -> None:
      super().__init__(  # type: ignore[call-overload]
          nn.Linear(d_model, ffd),
          activation_fct,
          nn.Dropout(p=dropout),
          nn.Linear(ffd, d_model),
          nn.Dropout(p=dropout),
      )
  
imports: import math
  from typing import Any, Callable, Optional, Tuple
  import torch
  from torch import nn
label_desc: Use image node_id 1 to create a new PositionwiseFeedForward object from inherited base classes: nn with example: obj = PositionwiseFeedForward(d_model, ffd, dropout, activation_fct)