Open Liviodl opened 5 years ago
Run into same issue here in Google Colab. Which Tensorflow Probability Version is this code written in?
I was running the code in colab too. the tfp version is 0.6.0
Attempt to leave the param 'num_adaptation_steps' to None. It runs forever.
Works when you set it to None in chapter 3. Did not work for chapter 2.
Same issue on my mac. tfp 0.6.0.
I used the following parameters, based on the official TF documentation here, which ran in a reasonable minute or two:
step_size_update_fn=tfp.mcmc.make_simple_step_size_update_policy(
num_adaptation_steps=10, # chosen arbitrarily
target_rate=0.75,
decrement_multiplier=0.1, # increased from 0.01 to speed execution
increment_multiplier=0.1,
step_counter=None),
There are very likely some better parameters to use, but this will get you through the chapter.
Running from colab. The TFP make_simple_step_size_update_policy requires a positional argument. Providing a value for the parameter "num_adaptation_steps:, produces different errors.
Here is the original error message.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/resource_variable_ops.py:435: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer.
TypeError Traceback (most recent call last)