Layers.Flatten( ) fails under TF 2.16.1 but not under TF 2.15 #64177
Labels
comp:apis
Highlevel API related issues
stale
This label marks the issue/pr stale - to be closed automatically if no activity
stat:awaiting response
Status - Awaiting response from author
TF 2.16
type:bug
Bug
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
TF 2.16.1
Custom code
No
OS platform and distribution
Linux Ubuntu 22.04.4 LTS
Mobile device
No response
Python version
3.10.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
CUDA 12.4; CUDNN 8
GPU model and memory
NVIDIA GeForce RTX 3060 12 GBs
Current behavior?
Code from pp 289 of Cholllet's book second ed, that uses a Flatten layer, runs OK under TF 2.15 and Keras 2.15. The exact same code fails under TF 2.16.1 when it tries to execute the line to get the history obj. For reference the code is in the section for code of this form and the error msg is also in the box of this form
2024-03-21 11:16:28.427720: W tensorflow/core/framework/local_rendezvous.cc:404] Local rendezvous is aborting with status: OUT_OF_RANGE: End of sequence
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1711034188.704423 18284 service.cc:145] XLA service 0x7ad818006930 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
I0000 00:00:1711034188.704465 18284 service.cc:153] StreamExecutor device (0): NVIDIA GeForce RTX 3060, Compute Capability 8.6
2024-03-21 11:16:28.713034: W tensorflow/core/framework/op_kernel.cc:1839] OP_REQUIRES failed at xla_ops.cc:580 : INVALID_ARGUMENT: only one input size may be -1, not both 0 and 1
Stack trace for op definition:
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: