A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, Keras and TensorFlow 2.
Apache License 2.0
7.92k
stars
3.18k
forks
source link
[BUG] Chapter 17 - calculating latent loss generates ValueError: A KerasTensor cannot be used as input to a TensorFlow function. #172
Hi everyone.
So I've tried to run the code with variational autoencoder, but there is an error like in title:
ValueError: A KerasTensor cannot be used as input to a TensorFlow function.
There is the code I'm trying to run (this code is from the book):
IDE suggests me to wrap this into the layer, and I've tried it but it still cannot work. There is my attempt to create this wrap.