You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'slice_input_producer'
I've seen several people here post about this but have yet to see a solution. I've tried downgrading python, tensorflow, pip, everything. I've also tried tf.disable_v2_behavior() and import tensorflow.compat.v1 as tf, both of which did not help.
If anyone has a solution to this it'd be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I have the same error but unfortunately I cant downgrade TensorFlow, because a lower version isn't supported by my GPU.
Does anybody now how to re-write this code?
I would very happy about any solutions.
tf.data.Dataset(
input_length=text_length,
tensors=[text, mel, mag, fname],
batch_size=hp.B,#
bucket_boundaries=[i for i in range(minlen + 1, maxlen - 1, 20)],
num_threads=8,#
capacity=hp.B*4,
dynamic_pad=True)
TypeError: Can't instantiate abstract class DatasetV2 with abstract methods _inputs, element_spec
how to deal with it?
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'slice_input_producer'
I've seen several people here post about this but have yet to see a solution. I've tried downgrading python, tensorflow, pip, everything. I've also tried tf.disable_v2_behavior() and import tensorflow.compat.v1 as tf, both of which did not help.
If anyone has a solution to this it'd be greatly appreciated.
The text was updated successfully, but these errors were encountered: