numagic / lumos

scalable accelerated optimal control
MIT License
17 stars 0 forks source link

use named io instead of pure vectors #49

Closed yunlongxu-numagic closed 2 years ago

yunlongxu-numagic commented 2 years ago

TODOS before merge:

yunlongxu-numagic commented 2 years ago

In general it seems to work ok coding wise, by adding a layer of array->dict before the new model io and dict->array after. However what is causing trouble is the jax jit compilation time increases significantly, especially for the hessian:

execution time is slightly increased, but not so significant.

Why does the jit compilation time increase so much for this thin layer of wrapper?!

yunlongxu-numagic commented 2 years ago

this slowdown seems to be only limited to using docker on MacOS

So: