The grader is returning an error on this function that appears to be working as expected. I added a cell and called the function and was unable to repro the error the grader failed the submission for. Please help me understand why the grader is returning:
Failed test case: There was an error grading this function. Details shown in ‘got’ value below:.
Expected:
no exceptions,
but got:
Found unexpected instance while processing input tensors for keras functional model. Expecting KerasTensor which is from tf.keras.Input() or output from keras layer call(). Got: <keras.engine.functional.Functional object at 0x7f3f603842d0>.
PLEASE REFRAIN FROM POSTING SOLUTION IN PUBLIC