ValueError: Tensor conversion requested dtype string for Tensor with dtype float32: <tf.Tensor 'args_0:0' shape=() dtype=float32>
etetteh opened this issue · 0 comments
etetteh commented
I am trying to train an ELECTRA base model, but getting the following error, when I run the pretraining script:
ValueError: in converted code:
relative to /home/etetteh/anaconda3/lib/python3.6/site-packages/tensorflow_core/python:
data/ops/readers.py:336 __init__
filenames, compression_type, buffer_size, num_parallel_reads)
data/ops/readers.py:296 __init__
filenames = _create_or_validate_filenames_dataset(filenames)
data/ops/readers.py:56 _create_or_validate_filenames_dataset
filenames = ops.convert_to_tensor(filenames, dtype=dtypes.string)
framework/ops.py:1184 convert_to_tensor
return convert_to_tensor_v2(value, dtype, preferred_dtype, name)
framework/ops.py:1242 convert_to_tensor_v2
as_ref=False)
framework/ops.py:1273 internal_convert_to_tensor
(dtype.name, value.dtype.name, value))
ValueError: Tensor conversion requested dtype string for Tensor with dtype float32: <tf.Tensor 'args_0:0' shape=() dtype=float32>
Please, assist a friend. Thank you.