psiz-org / psiz

A python package for inferring psychological embeddings.
https://psiz.org
Apache License 2.0
29 stars 7 forks source link

Cannot save model with `save_traces=True` #19

Closed roads closed 3 years ago

roads commented 3 years ago

An error is generated when saving models with my_model.save(fp, save_traces=True). Note that save_traces=True is the default.

When using TF 2.4 I get an error during the save process: "using a tf.Tensor as a Python bool is not allowed"

This may be due to an if statement in the graph. Suspect locations are the if statements in the call function of PsychologicalEmbedding and the call function of Rate/Rank,

For now, models must be saved with save_traces=False.