Traceback (most recent call last):


 "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/common_shapes.py", line 654, in _call_cpp_shape_fn_impl

input_tensors_as_shapes, status)


 "/usr/lib/python3.4/contextlib.py", line 66, in __exit__

next(self.gen)


 "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status

pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Invalid reduction dimension 1 for input with 0 dimensions. for 'Mean' (op: 'Mean') with input shapes: [], [] and with computed input tensors: input[1] = <1>.

Traceback (most recent call last):


 "C:\Vijay\src\PythonScript\predict_emails.py", line 147, in <module>

print(get_prediction(sys.argv[1]))


 "C:\Vijay\src\PythonScript\predict_emails.py", line 137, in get_prediction

category_predictions, category_raw_outputs = category_model.predict(cleaned_text_list)


 "C:\Users\Q15166\Anaconda3\envs\st\lib\site-packages\simpletransformers\classification\classification_model.py", line 1441, in predict

eval_dataset = self.load_and_cache_examples(


 "C:\Users\Q15166\Anaconda3\envs\st\lib\site-packages\simpletransformers\classification\classification_model.py", line 1284, in load_and_cache_examples

dataset = ClassificationDataset(


 "C:\Users\Q15166\Anaconda3\envs\st\lib\site-packages\simpletransformers\classification\classification_utils.py", line 215, in __init__

self.examples, self.labels = build_classification_dataset(


 "C:\Users\Q15166\Anaconda3\envs\st\lib\site-packages\simpletransformers\classification\classification_utils.py", line 208, in build_classification_dataset

torch.save(data, cached_features_file)


 "C:\Users\Q15166\Anaconda3\envs\st\lib\site-packages\torch\serialization.py", line 369, in save

with _open_file_like(f, 'wb') as opened_file:


 "C:\Users\Q15166\Anaconda3\envs\st\lib\site-packages\torch\serialization.py", line 230, in _open_file_like

return _open_file(name_or_buffer, mode)


 "C:\Users\Q15166\Anaconda3\envs\st\lib\site-packages\torch\serialization.py", line 211, in __init__

super(_open_file, self).__init__(open(name, mode))

NotFoundError: [Errno 2] No such file or directory: 'cache_dir/cached_dev_roberta_128_5_1'
