tensorflow / adanet

Fast and flexible AutoML with learning guarantees.
https://adanet.readthedocs.io
Apache License 2.0
3.47k stars 529 forks source link

Error on running tutorial notebook in Google colab #160

Closed prakashsellathurai closed 3 years ago

prakashsellathurai commented 3 years ago

I ran into an issue on running (https://github.com/tensorflow/adanet/blob/master/adanet/examples/tutorials/adanet_tpu.ipynb) notebook

I got error like this in google colab

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-17-ae83150256ff> in <module>()
      7 # TPU: switch `tf.estimator.RunConfig` to `tf.contrib.tpu.RunConfig`.
      8 # The main required changes are specifying `tpu_config` and `master`.
----> 9 config = tf.contrib.tpu.RunConfig(
     10     tpu_config=tf.contrib.tpu.TPUConfig(iterations_per_loop=200),
     11     master=MASTER,

AttributeError: module 'tensorflow.compat.v1' has no attribute 'contrib'