When not in eager mode an error occurs when it's trying to initialize the h_init and c_init tensors indicating that it is expecting an int32 and it's getting Nonetype.
This happens because in the initial setting up of the computational graph the first dimension is None so it can be dynamic based on the batch size. The error does not occur if the model is compiled with run_eagerly=True.
When not in eager mode an error occurs when it's trying to initialize the
h_init
andc_init
tensors indicating that it is expecting anint32
and it's gettingNonetype
.This happens because in the initial setting up of the computational graph the first dimension is
None
so it can be dynamic based on the batch size. The error does not occur if the model is compiled withrun_eagerly=True
.@SimonTopp ran into this and so did I.