tensorflow / tensorflow/tensorboard

tensorflow.python.framework.errors_impl.InvalidArgumentError: events.out.tfevents. Invalid argument

Open
#6,398 6 comments 0 reactions 1 assignee View on GitHub

@yatbear is already working on this.

Since May 19, 2023.

Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

Hi
I am using Pytorch forecasting package however my code throws an error in the training phase, even during the first epoch. Here is the system configuration:

  • PyTorch-Forecasting version: 1.0.0
  • PyTorch version:2.0.
  • Python version:3.10
  • Tensorflow version: 2.11
  • CuDa version: 11.7

During the training my code gives the following error:

The traceback:

"/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
python3.10/site-packages/tensorboard/summary/writer/event_file_writer.py", line 233, in run
    self._record_writer.write(data)
python3.10/site-packages/tensorboard/summary/writer/record_writer.py", line 40, in write
    self._writer.write(header + header_crc + data + footer_crc)
python3.10/site-packages/tensorflow/python/lib/io/file_io.py", line 101, in write
    self._writable_file.append(
tensorflow.python.framework.errors_impl.InvalidArgumentError:events.out.tfevent;  Invalid argument

I do not think there is any problem with data or model however every time I see the above traceback while training and was wondering what causes this issue and how to fix it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.