class_docstr: Description
  -----------
  Dense layer with a linear layer and an activation function
class_docstr_tok: ["Description","--","--","--","--","--","-","Dense","layer","with","a","linear","layer","and","an","activation","function"]
code: def __init__(
      self, in_dim: int, out_dim: int, act: str = "prelu", bias=True
  ):
      super(DenseLayer, self).__init__()
      self.lin = torch.nn.Linear(in_dim, out_dim, bias=bias)
      self.act_type = act.lower()
      self.reset_parameters()
  
imports: from typing import Optional
  import dgl
  import torch
  import torch.nn
  from dgl import DGLGraph
  from dgl.nn import GraphConv
  from torch import Tensor
label_desc: Use image node_id 1 to create a new DenseLayer object from inherited base classes: torch.nn with example: obj = DenseLayer(in_dim, out_dim, act, bias)