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
Exception in thread Thread-4: Traceback (most recent call last): File "E:\Users\renqi\anaconda3\envs\paddle\lib\threading.py", line 932, in _bootstrap_inner self.run() File "E:\Users\renqi\anaconda3\envs\paddle\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\fluid\dataloader\dataloader_iter.py", line 217, in _thread_loop batch = self._dataset_fetcher.fetch(indices, File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\fluid\dataloader\fetcher.py", line 134, in fetch data = self.collate_fn(data) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddlenlp\data\data_collator.py", line 383, in __call__ decoder_input_ids = self.model.prepare_decoder_input_ids_from_labels(labels=features["labels"]) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\pegasus\modeling.py", line 673, in prepare_decoder_input_ids_from_labels return shift_tokens_right(labels, self.pegasus.pad_token_id, self.pegasus.config["decoder_start_token_id"]) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\pegasus\modeling.py", line 45, in shift_tokens_right shifted_input_ids = paddle.where(shifted_input_ids == -100, pad_token_id, shifted_input_ids) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\tensor\search.py", line 640, in where broadcast_zeros = paddle.add(zeros_like_x, zeros_like_y) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\tensor\math.py", line 278, in add return _C_ops.elementwise_add(x, y) ValueError: (InvalidArgument) The type of data we are trying to retrieve does not match the type of data currently contained in the container. [Hint: Expected dtype() == paddle::experimental::CppTypeToDataType<T>::Type(), but received dtype():7 != paddle::experimental::CppTypeToDataType<T>::Type():5.] (at ..\paddle\phi\core\dense_tensor.cc:137) [operator < elementwise_add > error]
The text was updated successfully, but these errors were encountered:
请提出你的问题
Exception in thread Thread-4: Traceback (most recent call last): File "E:\Users\renqi\anaconda3\envs\paddle\lib\threading.py", line 932, in _bootstrap_inner self.run() File "E:\Users\renqi\anaconda3\envs\paddle\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\fluid\dataloader\dataloader_iter.py", line 217, in _thread_loop batch = self._dataset_fetcher.fetch(indices, File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\fluid\dataloader\fetcher.py", line 134, in fetch data = self.collate_fn(data) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddlenlp\data\data_collator.py", line 383, in __call__ decoder_input_ids = self.model.prepare_decoder_input_ids_from_labels(labels=features["labels"]) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\pegasus\modeling.py", line 673, in prepare_decoder_input_ids_from_labels return shift_tokens_right(labels, self.pegasus.pad_token_id, self.pegasus.config["decoder_start_token_id"]) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\pegasus\modeling.py", line 45, in shift_tokens_right shifted_input_ids = paddle.where(shifted_input_ids == -100, pad_token_id, shifted_input_ids) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\tensor\search.py", line 640, in where broadcast_zeros = paddle.add(zeros_like_x, zeros_like_y) File "E:\Users\renqi\anaconda3\envs\paddle\lib\site-packages\paddle\tensor\math.py", line 278, in add return _C_ops.elementwise_add(x, y) ValueError: (InvalidArgument) The type of data we are trying to retrieve does not match the type of data currently contained in the container. [Hint: Expected dtype() == paddle::experimental::CppTypeToDataType<T>::Type(), but received dtype():7 != paddle::experimental::CppTypeToDataType<T>::Type():5.] (at ..\paddle\phi\core\dense_tensor.cc:137) [operator < elementwise_add > error]
The text was updated successfully, but these errors were encountered: