My lab passed all the test but I am getting failed and this error

Cell #UNQ_C1. Can’t compile the student’s code. Error: NameError(“name ‘Dense’ is not defined”)
Traceback (most recent call last):
File “/home/www/app/grading/”, line 112, in handle_solution_errors
yield {}
File “/home/www/app/grading/”, line 393, in _grade
context =
File “/home/www/app/grading/submission/”, line 195, in run
return list(self._code_items.values())[cell_num - 1].run()
File “/home/www/app/grading/submission/”, line 54, in run
return import_module(self.import_statement, items)
File “/usr/local/lib/python3.7/importlib/”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/tmp/student_solution_cells/”, line 22, in
Dense(32, activation=‘linear’),
NameError: name ‘Dense’ is not defined

Where did you define Dense in your notebook? We usually import tensorflow as tf and then use tf.keras.layers.Dense.

ok thanks for the information

For future learners, if you encounter error like this

NameError: name ‘Dense’ is not defined

It is most important that you review where you have defined the name in question.