code: def __init__(self, vocab_size, embedding_dim, sparse=False):
      super(Example18, self).__init__()
      self.model = nn.Sequential()
      self.embedding = nn.Embedding(
          vocab_size, embedding_dim, sparse=sparse
      )
  
file_path: BigDL/python/nano/test/pytorch/tests/test_optim.py
imports: import numpy
  from bigdl.nano.pytorch.optim import SparseAdam
  import torch
  from torch import nn
label_desc: Use image node_id 1 to create a new Example18 object from inherited base classes: nn with example: obj = Example18(vocab_size, embedding_dim, sparse)