Skip to content

Commit

Permalink
Import JAX substrate through tfp.substrates.jax instead of deprecated
Browse files Browse the repository at this point in the history
experimental.substrates.
Also, have the colab binary depend on both the TensorFlow and JAX substrates
since various notebooks use each.

PiperOrigin-RevId: 613768759
  • Loading branch information
ThomasColthurst authored and tensorflower-gardener committed Mar 8, 2024
1 parent 898cfe9 commit 93bdfbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"config.update('jax_enable_x64', True)\n",
"\n",
"def demo_jax():\n",
" from tensorflow_probability.python.experimental.substrates import jax as tfp\n",
" import tensorflow_probability.substrates.jax as tfp\n",
" tfd = tfp.distributions\n",
" tfb = tfp.bijectors\n",
"\n",
Expand Down Expand Up @@ -2123,4 +2123,4 @@
"outputs": []
}
]
}
}

0 comments on commit 93bdfbf

Please sign in to comment.