keras-team / keras-io

Keras documentation, hosted live at keras.io
Apache License 2.0
2.79k stars 2.05k forks source link

Issue found in Vector-Quantized Variational Autoencoders code example #858

Closed eng-amrahmed closed 1 year ago

eng-amrahmed commented 2 years ago

The below line throws an exception sampled = dist.sample()

I have solved the issue by installing the tensorFlow-probability version (0.12.0) but it's just a temporary fix.

//!pip install -q tensorflow-probability !pip install -q "tensorflow-probability==0.12.0"

SuryanarayanaY commented 1 year ago

Hi @eng-amrahmed ,

I can see this issue which is quiet older and it is resolved with latest versions. There might be compatibility issue at that time.

But with latest versions of tensorflow(2.12v) and tensorflow-probability(0.21.0v) its working fine. I have tested the tutorial and attached gist here for reference.

Please check and confirm whether we can mark this as resolved now. Thanks!

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further.