Unable to concatenate Keras Tensor and Eager Tensor using tf.keras.layers.Concatenate #61925
Labels
comp:keras
Keras 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.13
For issues related to Tensorflow 2.13
type:bug
Bug
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.13
Custom code
Yes
OS platform and distribution
Ubuntu 20.04
Mobile device
No response
Python version
3.8
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I want to pad the Keras Tensor without using tf.pad or tf.concat.
My approach is to create an empty tensor with zeros and concatenate the last layer with the Keras Tensor.
I have successfully saved the model. But when I try to load the model, I am getting errors, I have attached code to recreate the error and logs as well.
The expected output is concatenated Keras tensor on the last axis.
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: