Skip to content

Conversation

@wchargin
Copy link
Contributor

@wchargin wchargin commented Dec 5, 2020

Summary:
The mesh plugin’s is_active method had a hard dependency on the event
multiplexer, which is not always available, as TBContext documents.
In fact, the entire is_active method can just be return False, since
TensorBoard core will treat the "mesh" plugin as active when "mesh"
data is available, and that’s all that it was checking, anyway.

Test Plan:
The mesh plugin appears active in a logdir with mesh data and inactive
in one without it, and when launching with --load_fast (and thus no
multiplexer) there’s no longer any log spam about “Plugin listing:
is_active() for mesh failed”.

wchargin-branch: mesh-isactive

Summary:
The mesh plugin’s `is_active` method had a hard dependency on the event
multiplexer, which is not always available, as `TBContext` documents.
In fact, the entire `is_active` method can just be `return False`, since
TensorBoard core will treat the `"mesh"` plugin as active when `"mesh"`
data is available, and that’s all that it was checking, anyway.

Test Plan:
The mesh plugin appears active in a logdir with mesh data and inactive
without it, and when launching with `--load_fast` (and thus no
multiplexer) there’s no longer any log spam about “Plugin listing:
is_active() for mesh failed”.

(Cherry-pick #4411 for --load_fast.)

wchargin-branch: mesh-isactive
wchargin-source: fa80676693f66b52489b19f8041adb62f62660de
@wchargin wchargin added type:bug plugin:mesh core:rustboard //tensorboard/data/server/... labels Dec 5, 2020
@wchargin wchargin requested a review from stephanwlee December 5, 2020 01:08
@google-cla google-cla bot added the cla: yes label Dec 5, 2020
wchargin-branch: mesh-isactive
wchargin-source: 26527da49754e9166d7f812092c873d35a2b004b
@wchargin wchargin merged commit 452cd82 into master Dec 5, 2020
@wchargin wchargin deleted the wchargin-mesh-isactive branch December 5, 2020 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants