Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, embedding_dim, gen_dims, data_dim):
super(Generator, self).__init__()
dim = embedding_dim
seq = []
for item in list(gen_dims):
seq += [
Residual(dim, item)
]
dim += item
seq.append(Linear(dim, data_dim))
self.seq = Sequential(*seq)