USGS-R / river-dl

Deep learning model for predicting environmental variables on river systems
Creative Commons Zero v1.0 Universal
21 stars 15 forks source link

Nonetype when trying to run models not in eager mode #108

Closed jsadler2 closed 3 years ago

jsadler2 commented 3 years ago

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.

@SimonTopp ran into this and so did I.