question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multiple file writers writing at once.

See original GitHub issue

Background

TensorBoard assigns one DirectoryWatcher per run. The DirectoryWatcher watches for new events being written to the directory and loads it into TensorBoard’s multiplexer. Today, the DirectoryWatcher iterates through events files (for a run) in lexicographic order. After it has finished reading from an events file, it never reads from it again (and moves on to a subsequent events file).

This behavior means that TensorBoard does not support multiple file writers writing to the same run directory: TensorBoard would move on to a different events file B once it finishes reading events file A and would never go back to reading A despite how A is updated.

In turn, that problem blocks TensorFlow+TensorBoard’s transition towards migrating Estimator, tflearn hooks, and other high-level TensorFlow constructs to using the tf.contrib.summary-style summaries. tf.contrib.summary-style summaries are written via a type of SummaryWriter different from the one that writes traditional-style (tf.summary.*) summaries, so users that intermingle the summaries will necessarily have to concurrently use 2 summary writers. Many users thoughout google3 intermingle the summaries, and the transition must happen soon.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nfeltcommented, Jul 29, 2019

I’ve merged #1867 which introduces the experimental --reload_multifile=true option, which can now be used to poll all “active” files in a directory for new data, rather than the most recent one, and addresses the core concern of this issue. Note that a file is “active” as long as it received new data within --reload_multifile_inactive_secs seconds ago, a new configurable flag that defaults to 4000, aka just over an hour.

If you’ve been waiting on this functionality, thanks for your patience, and please try out the new flag in tb-nightly starting with tomorrow’s release and let us know how it works for you.

0reactions
nfeltcommented, Nov 30, 2021

This issue should stay open, since the flag is still experimental and not on by default yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to implement Readers Writers using multiple writers and ...
1 Answer 1 · the writer(s) wait until the buffer is not full, then write as much as they can, then signal a...
Read more >
ItemReaders and ItemWriters - Spring
Spring Batch provides three key interfaces to help perform bulk reading and writing: ItemReader , ItemProcessor , and ItemWriter . ItemReader. Although a...
Read more >
FileWriter supporting writing to multiple files
I got bored with opening and closing files whenever I need to write to one, so I wrote a FileWriter class that's used...
Read more >
Write to multiple files with java - CodeProject
public static void main(String[] args) throws IOException { String[] fileNames = {"file1.html","file2.txt"}; BufferedWriter writer = null; ...
Read more >
Data Download only outputting files from a single writer
One of the apps is a simple task where the user drags in an excel file and some analysis is done on it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found