Traceback (most recent call last):


 "/home/ec2-user/yonatab/ZeroShot/transformers_experiments/src/run_squad_tf.py", line 257, in <module>

main()


 "/home/ec2-user/yonatab/ZeroShot/transformers_experiments/src/run_squad_tf.py", line 242, in main

history = model.fit(train_dataset, validation_data=eval_dataset, epochs=1)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 819, in fit

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 235, in fit

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 593, in _process_training_inputs

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 706, in _process_inputs

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/data_adapter.py", line 702, in __init__

x = standardize_function(x)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 660, in standardize_function

standardize(dataset, extract_tensors_from_dataset=False)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 2360, in _standardize_user_data

self._compile_from_inputs(all_inputs, y_input, x, y)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 2580, in _compile_from_inputs

target, self.outputs)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_utils.py", line 1341, in cast_if_floating_dtype_and_mismatch

if target.dtype != out.dtype:
AttributeError: 'str' object has no attribute 'dtype'

Traceback (most recent call last):



 "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner

self.run()



 "/usr/lib/python3.5/threading.py", line 862, in run

self._target(*self._args, **self._kwargs)


 "/usr/local/lib/python3.5/dist-packages/prompt_toolkit/interface.py", line 865, in run

completions = list(buffer.completer.get_completions(document, complete_event))


 "/usr/share/mycli/mycli/sqlcompleter.py", line 256, in get_completions


suggestions = suggest_type(document.text, document.text_before_cursor)


 "/usr/share/mycli/mycli/packages/completion_engine.py", line 85, in suggest_type

full_text, identifier)


 "/usr/share/mycli/mycli/packages/completion_engine.py", line 134, in suggest_based_on_last_token

token_v = token.value.lower()
AttributeError: 'tuple' object has no attribute 'value'
