Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Refactor metric_reporters #245

Closed

Conversation

Titousensei
Copy link
Contributor

Summary:
we're passing around SummaryWriter everywhere. This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class. This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Differential Revision: D13829608

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 26, 2019
Titousensei added a commit to Titousensei/pytext that referenced this pull request Jan 26, 2019
Summary:
Pull Request resolved: facebookresearch#245

we're passing around SummaryWriter everywhere.  This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class.  This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Differential Revision: D13829608

fbshipit-source-id: 463c34205582ff80fd6d319bee60ac147cc19852
Titousensei added a commit to Titousensei/pytext that referenced this pull request Jan 30, 2019
Summary:
Pull Request resolved: facebookresearch#245

we're passing around SummaryWriter everywhere.  This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class.  This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Differential Revision: D13829608

fbshipit-source-id: d2034bf670350f4cfb5338f7baa628887e131304
Titousensei added a commit to Titousensei/pytext that referenced this pull request Jan 30, 2019
Summary:
Pull Request resolved: facebookresearch#245

we're passing around SummaryWriter everywhere.  This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class.  This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Differential Revision: D13829608

fbshipit-source-id: bfe2c6cf5e6f515149057468ebf2f01c992164a3
Titousensei added a commit to Titousensei/pytext that referenced this pull request Jan 30, 2019
Summary:
Pull Request resolved: facebookresearch#245

we're passing around SummaryWriter everywhere.  This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class.  This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Differential Revision: D13829608

fbshipit-source-id: 5f681273cfe97be529da7bcc4df888a4814694c4
@Titousensei Titousensei force-pushed the export-D13829608 branch 3 times, most recently from 828e3da to 946603f Compare February 1, 2019 00:36
Titousensei added a commit to Titousensei/pytext that referenced this pull request Feb 1, 2019
Summary:
Pull Request resolved: facebookresearch#245

we're passing around SummaryWriter everywhere.  This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class.  This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Differential Revision: D13829608

fbshipit-source-id: 10820668357fb83c39b37a68eef635830d2aa60d
Titousensei added a commit to Titousensei/pytext that referenced this pull request Feb 1, 2019
Summary:
Pull Request resolved: facebookresearch#245

we're passing around SummaryWriter everywhere.  This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class.  This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Differential Revision: D13829608

fbshipit-source-id: f559340726e5ce36b38b75202115b06670f8b0e2
Summary:
Pull Request resolved: facebookresearch#245

we're passing around SummaryWriter everywhere.  This is a
TensorBoard-specific internal parameter that should be isolated to the
TensorBoardChannel class.  This is because metric reporters channels are
actually resources that need to be closed after using them.

This implementation makes it difficult to add new metric reporter channels
that are additions to and alternatives of TensorBoard. This diff refactors
how metric reporters are passed around and improves modularity and
separation of concerns.

Reviewed By: geof90

Differential Revision: D13829608

fbshipit-source-id: e16a25e174510be5aeae1cb38c34460796f4c46b
@Titousensei Titousensei deleted the export-D13829608 branch April 17, 2019 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants