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.
An error is generated when saving models with
my_model.save(fp, save_traces=True)
. Note thatsave_traces=True
is the default.When using TF 2.4 I get an error during the save process: "using a
tf.Tensor
as a Pythonbool
is not allowed"This may be due to an
if
statement in the graph. Suspect locations are the if statements in the call function ofPsychologicalEmbedding
and the call function ofRate
/Rank
,For now, models must be saved with
save_traces=False
.