cog-imperial / OMLT

Represent trained machine learning models as Pyomo optimization formulations
Other
281 stars 59 forks source link

Kernel Crash in MNIST Examples: Import Order Affects Execution #133

Open bahar239 opened 1 year ago

bahar239 commented 1 year ago

Hello,

I've been trying to make the mnist_example_convolutional and mnist_example_dense notebooks work. However, right after executing the imports, I consistently received the error message: "The Kernel crashed while executing code in the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure." Surprisingly, altering the order of the imports resolved the issue. For context, I'm using a MacBook Pro with an Apple M1 chip, 16 GB of RAM, and Python version 3.9.13. I'd like to know if anyone has insights into what the issue is here or how the change of import orders solves the problem.

I appreciate any help on this!