Skip to content

Add default tensor size guidance for text #1276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tensorboard/backend/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ py_library(
"//tensorboard/plugins/image:metadata",
"//tensorboard/plugins/pr_curve:metadata",
"//tensorboard/plugins/scalar:metadata",
"//tensorboard/plugins/text:text_plugin",
"@org_pocoo_werkzeug",
"@org_pythonhosted_six",
],
Expand Down
3 changes: 3 additions & 0 deletions tensorboard/backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
from tensorboard.plugins.image import metadata as image_metadata
from tensorboard.plugins.pr_curve import metadata as pr_curve_metadata
from tensorboard.plugins.scalar import metadata as scalar_metadata
from tensorboard.plugins.text import metadata as text_metadata



DEFAULT_SIZE_GUIDANCE = {
Expand All @@ -59,6 +61,7 @@
audio_metadata.PLUGIN_NAME: 10,
histogram_metadata.PLUGIN_NAME: 500,
pr_curve_metadata.PLUGIN_NAME: 100,
text_metadata.PLUGIN_NAME: 10,
}

DATA_PREFIX = '/data'
Expand Down