tensorchiefs/dl_book

nb_ch05_01.ipynb

VV20192019 opened this issue · 0 comments

TFP Version 0.14.0
TF Version 2.8.0
model_mean_sd_5 = Model(inputs=inputs, outputs=dist.mean())
AttributeError: 'UserRegisteredTypeKerasTensor' object has no attribute 'mean'

modified:
preds = model_sd_1(x_pred)
mean = preds.mean()
sigma = preds.stddev()