I'm new to Tensorflow and working on code from v1 Tensorflow, but tf.contrib module is no longer supported in Tensorflow and I'm facing trouble finding their substitute in V2.
I disabled V2 with this code :
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
But still it is not working for tf.contrib.lookup.index_table_from_file and I'm getting an error
AttributeError: module 'tensorflow_core.compat.v1' has no attribute 'contrib'. I tried looking in their official documentation Here but couldn't find one.
What is the substitute for tf.contrib.lookup.index_table_from_file function in V2?