Skip to content Skip to sidebar Skip to footer

Valueerror: Input 0 Of Layer Dense Is Incompatible With The Layer: Its Rank Is Undefined, But The Layer Requires A Defined Rank

When trying the example at https://www.tensorflow.org/tutorials/images/hub_with_keras at a local computer with tf '2.0.0-alpha0' (download, pip-download hub '0.4.0-dev' and remove

Solution 1:

As proposed by @arnoegw in the comments, this is fixed in tf-nightly-2.0-preview. So until it lands in production, just use

pip install tf-nightly-2.0-preview

Post a Comment for "Valueerror: Input 0 Of Layer Dense Is Incompatible With The Layer: Its Rank Is Undefined, But The Layer Requires A Defined Rank"