TypeError: Expected bool passed to parameter 'y' of op 'NotEqual', got -100 of type 'int' instead. Error: Expected bool, but got -100 of type 'int'. #6
File "H:\NLP_Training\NLP_3.8\lib\site-packages\transformers\trainer_tf.py", line 701, in distributed_training_steps *
nb_instances_in_batch = self._compute_nb_instances(batch)
File "H:\NLP_Training\NLP_3.8\lib\site-packages\transformers\trainer_tf.py", line 713, in _compute_nb_instances *
nb_instances = tf.reduce_sum(tf.cast(labels != -100, dtype=tf.int32))
TypeError: Expected bool passed to parameter 'y' of op 'NotEqual', got -100 of type 'int' instead. Error: Expected bool, but got -100 of type 'int'.
TypeError: in user code: