albermax / albermax/innvestigate

[Question] how to save the analyzer object for later online use.

Ouverte
#304 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
1.3k
Forks
230
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.