by any chance, relay.nn.sparse_dense is same to nn.embedding?
nn.embedding is corresponding to take op in relay. See:
nn.embedding
take