Accompanying source code for Machine Learning with TensorFlow. Refer to the book for step-by-step explanations.
4.45k
stars
1.21k
forks
source link
ch02_basics/moving_avg.py TypeError: Can not convert a float32 into a Tensor. #31
Open
AlexPetit12 opened 6 years ago
Hi,
I am trying to reproduce your exponential moving average example but I get the error "TypeError: Can not convert a float32 into a Tensor. "
I modified the lines
for
to make things work, but I was wondering is this way the best solution or can we do better?
Thanks