albermax / albermax/innvestigate
[Question] how to save the analyzer object for later online use.
- 主要語言
- Python
- 星號
- 1.3k
- 分支
- 230
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi guys,
I love this package and started to use it again after you moved to tf2 (also used it when it was in its tf1 days).
So thanks for all the hard work !)
My question is, I'm trying to save the analyzer after generated for future use but I seem to unable to do it.
neither pickling/dill helped or even save the tf2 model itself.
the generation can take some time and in order to use it as an online feature I have to find a workaround.
from what I've got so far, I cant pickle/dill the object because its using TF infra (which has parts written in C), and I can save the generated model (analyzer_obj._analyzer_model) because the eager execution is disabled (apparently its important..)
anything you guys can contribute from your experience?
P.S
the only solution I see is to use full on TF2 and remove the line (tf.compat.v1.disable_eager_execution()) and use tf.GradientTape.
I tried to do it but it has issues with the session that add difficulty to this.
Thanks !!)
Shai
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。