Git Product home page Git Product logo

Comments (5)

KriteshGarg avatar KriteshGarg commented on June 29, 2024

Please add an example how to use summaryWriter() when fit() is used.

from mxboard.

SunDoge avatar SunDoge commented on June 29, 2024

HI, @reminisce , is there any progress? I'm also wondering about these questions.

from mxboard.

reminisce avatar reminisce commented on June 29, 2024

@LordSycho @SunDoge Please refer to https://github.com/awslabs/mxboard/blob/master/demo.md for examples on how to use SummaryWriter.

from mxboard.

SunDoge avatar SunDoge commented on June 29, 2024

@reminisce I've already known how to use SummaryWriter and I've been using it for a long time. But I'm quite interesting in those five questions. I use default settings all the time and have never thought about them.

Add an FAQ section in README.

1. How to initialize a `SummaryWriter` instance: `with SummaryWriter(...)` or `sw = SummaryWriter(..)`?

2. What is the meaning of `verbose`?

3. Should I call `flush()` on a `SummaryWriter` object?

4. How to improve the logging performance?

5. Can I use the same tag for adding different types, e.g. image and histogram? No. One of them is going to be overwritten by the other.

from mxboard.

reminisce avatar reminisce commented on June 29, 2024

@SunDoge Thanks for your interest. I have listed brief answers for 1-4 below, while the 5th has been answered.

  1. Using the with statement for SummaryWriter gives you a safe error handling of logging files, which means the logging I/O will be closed properly if some exception is thrown by any code under this statement. It the same philosophy as python's with open(file) statement.

  2. verbose=True means printing logging messages. You can turn it off by setting verbose=False.

  3. Normally, you don't need to worry about that. When the content is flushed to disk is determined by flush_secs parameter when you initialize SummaryWriter. If you want to see the visualization immediately after data is logged, you will need to call flush().

  4. Any I/O operation would possibly result in performance degradation. So you can increase the max_queue and flush_secs to reduce the frequency of writing data to disk to minimize the performance impact of logging, but that would require more memory consumption to hold data for longer time.

from mxboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.