@Adam_Moses , if you read again the guides on the lines of the exercise, there’s only one place where the training is mentioned. Try adding training=training to that function.
I figured it out in the end, but I do think the guidance before the exercise could be far more clear, if read verbatim without examining some of the extra documentation the way to do this is un-obvious.
Hi Folks,
I’ve read thru past postings for the same error, but do not believe I am hitting any one of the them exactly. Code is (abstracted for honor code) – will provide if a mentor requests:
This is the code I am facing the errors on. I’ve read some of those threads but none helps me solving which layer should I try with the training parameter.
def call(self, x, training, mask):
“”"
Forward pass for the Encoder Layer
Arguments:
x -- Tensor of shape (batch_size, input_seq_len, embedding_dim)
training -- Boolean, set to true to activate
the training mode for dropout layers
mask -- Boolean mask to ensure that the padding is not
treated as part of the input
Returns:
out2 -- Tensor of shape (batch_size, input_seq_len, embedding_dim)
"""
# START CODE HERE
# mentor edit: code removed
# END CODE HERE
return encoder_layer_out