C5W4A1Encoder Error: NameError("name 'eshape' is not defined")

I keep getting this error when trying to run my code for the Encoder class test in exercise 5. It looks like it’s caused by the unit test.

NameError Traceback (most recent call last)
----> 2 Encoder_test(Encoder)

~/work/W4A1/public_tests.py in Encoder_test(target)
118 assert tf.is_tensor(encoderq_output), “Wrong type. Output must be a tensor”
→ 119 assert tuple(tf.shape(encoderq_output).numpy()) == (x.shape[0], x.shape[1], embedding_dim), f"Wrong shape. We expected ({eshape[0]}, {eshape[1]}, {embedding_dim})"
120 assert np.allclose(encoderq_output.numpy(),
121 [[[-0.6906098 , 1.0988709 , -1.260586 , 0.85232526],

NameError: name ‘eshape’ is not defined

I can’t submit my code to be graded because the grader keeps giving a 0 for this error. Is there any way to fix this? I’ve tried restarting the kernel and updating the notebook to the latest version already.

Hey @Nick, could you DM your solution for this exercise. Thanks. I’ll take a look.