Skip to content

Commit d8043bf

Browse files
authored
Fix typo
dtype is an argument to tf.cast
1 parent a574644 commit d8043bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Chapter1_Introduction/Ch1_Introduction_TFP.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@
12771277
" state_gradients_are_stopped=True),\n",
12781278
" bijector=unconstraining_bijectors))\n",
12791279
"\n",
1280-
"tau_samples = tf.floor(posterior_tau * tf.cast(tf.size(count_data)), tf.float32)\n",
1280+
"tau_samples = tf.floor(posterior_tau * tf.cast(tf.size(count_data), dtype=tf.float32))\n",
12811281
"\n",
12821282
"# tau_samples, lambda_1_samples, lambda_2_samples contain\n",
12831283
"# N samples from the corresponding posterior distribution\n",

0 commit comments

Comments
 (0)