I am running into an issue trying to load a model into a web-worker via the indexedDB.
Specifically, I am getting a ReferenceError: window is not defined when trying to use: tf.loadLayersModel(“indexeddb://model_name”)
I found in the indexed_db.js file line 51
const theWindow = window || self;
however, it appears that window in a webworker is “not defined” rather than “undefined” which throws an error rather than being coerced into falsy
Just wondering if this is indeed unintended behavior