i run my code but i keep getting the following error message:
TypeError Traceback (most recent call last)
in
28 print("\033[92mAll tests passed")
29
—> 30 Encoder_test(Encoder)
in Encoder_test(target)
14 x = np.array([[2, 1, 3], [1, 2, 0]])
15
—> 16 encoderq_output = encoderq(x, True, None)
17
18 assert tf.is_tensor(encoderq_output), “Wrong type. Output must be a tensor”
/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py in call(self, *args, **kwargs)
1010 with autocast_variable.enable_auto_cast_variables(
1011 self._compute_dtype_object):
→ 1012 outputs = call_fn(inputs, *args, **kwargs)
1013
1014 if self._activity_regularizer:
in call(self, x, training, mask)
56 # Pass the output through the stack of encoding layers
57 for i in range(self.num_layers):
—> 58 x = self.enc_layers(x) # code here x =None
59 # END CODE HERE
60
/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py in call(self, *args, **kwargs)
1010 with autocast_variable.enable_auto_cast_variables(
1011 self._compute_dtype_object):
→ 1012 outputs = call_fn(inputs, *args, **kwargs)
1013
1014 if self._activity_regularizer:
TypeError: call() missing 1 required positional argument: ‘mask’
Any help?