carpedm20/ENAS-pytorch

a bug related to CNN search?

neouyghur opened this issue · 0 comments

Hi, thanks for sharing the code. I am implementing the CNN part. I think the block_idx in forward function should be moded by 2 when CNN case as you used only two softmax. Could you check it? Thanks.

for block_idx in range(2*(self.args.num_blocks - 1) + 1):
logits, hidden = self.forward(inputs,
hidden,
block_idx,
is_embed=(block_idx == 0))