EloquentTinyML icon indicating copy to clipboard operation
EloquentTinyML copied to clipboard

NameError: name 'Exp' is not defined

Open chisu7917 opened this issue 3 years ago • 1 comments

NameError Traceback (most recent call last) in () 1 if name == 'main': ----> 2 model, x_test, y_test = get_model() 3 test_model(model, x_test, y_test) 4 c_code = port(model, variable_name='digits_model', pretty_print=True) 5 print(c_code)

in get_model() 16 model.fit(x_train, y_train, epochs=50, batch_size=16, 17 validation_data=(x_validate, y_validate)) ---> 18 return Exp NameError: name 'Exp' is not defined

Should I change 'return Exp' to 'reture model, x_test, y_test'

Thank you!!

chisu7917 avatar Feb 13 '22 04:02 chisu7917

Yes, I guess my IDE autocomplete messed that line. I edited the file now.

eloquentarduino avatar Feb 14 '22 08:02 eloquentarduino