I was translating a program from pytorch to Tensorflow in which I wrote for a generator model:
class Generator(tf.Module): def __init__(self, noise_size, cond