Try
for i in range(cat_num):
    self.cat_table.append(nn.Embedding(10, embedding_size))
for i in range(one_num):
    self.one_table.append(nn.Embedding(2, embedding_size, padding_idx=0))
self.cat_table = torch.nn.ModuleList(self.cat_table)
self.one_table = torch.nn.ModuleList(self.one_table)