Traceback (most recent call last):


 "C:\Users\S10500\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 575, in show_time

elapsed_time = time.monotonic() - self.t0
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Traceback (most recent call last):


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 644, in run_train

self.train_loop.run_training_epoch()


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/training_loop.py", line 564, in run_training_epoch

self.trainer.run_evaluation(on_epoch=True)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 758, in run_evaluation

self.evaluation_loop.on_evaluation_end()


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 100, in on_evaluation_end

self.trainer.call_hook('on_validation_end', *args, **kwargs)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1101, in call_hook

trainer_hook(*args, **kwargs)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/callback_hook.py", line 183, in on_validation_end

callback.on_validation_end(self, self.lightning_module)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 212, in on_validation_end

self.save_checkpoint(trainer, pl_module)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 259, in save_checkpoint

self._save_top_k_checkpoints(trainer, pl_module, monitor_candidates)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 566, in _save_top_k_checkpoints

self._update_best_and_save(current, epoch, step, trainer, pl_module, metrics)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 608, in _update_best_and_save

self._save_model(filepath, trainer, pl_module)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 335, in _save_model

self.save_function(filepath, self.save_weights_only)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/properties.py", line 327, in save_checkpoint

self.checkpoint_connector.save_checkpoint(filepath, weights_only)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 408, in save_checkpoint

atomic_save(checkpoint, filepath)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/pytorch_lightning/utilities/cloud_io.py", line 63, in atomic_save

torch.save(checkpoint, bytesbuffer)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/torch/serialization.py", line 372, in save

_save(obj, opened_zipfile, pickle_module, pickle_protocol)


 "/opt/conda/envs/lasaft/lib/python3.8/site-packages/torch/serialization.py", line 476, in _save

pickler.dump(obj)
TypeError: cannot pickle '_csv.writer' object
