Questions with respect to the code
Opened this issue · 3 comments
Hi, @YuqiCui , Thanks for your implementation. I have a question that if I change the name of encoder and add it like "model = Sequential(name='encoder')", error will occur like:
ValueError: Unknown entry in loss dictionary: "encoder". Only expected the following keys: ['decoder', 'dense_1', 'adv', 'task']
However, it is a serious problem since if I wanna multiple conv layers in the encoder, the loss as a whole cannot be computed. Hopfully you can help me. :)
Thanks,
I don't understand, could you show the code contains all of your modification?
I change this definition
'''
def encoder(self):
model = Sequential()
model.add(Dense(self.hidden_layer, input_shape=[self.input_shape, ], activation='linear', name='encoder'))
return model
'''
to
'''
def encoder(self):
model = Sequential(name='encoder')
model.add(Dense(self.hidden_layer, input_shape=[self.input_shape, ], activation='linear' ))
return model
'''
Thanks, @YuqiCui .
I have the same question. Have you solved it yet? @YuqiCui