Skip to content

Commit

Permalink
Restore event_processing APIs (#378)
Browse files Browse the repository at this point in the history
Many teams depend on those APIs internally.
  • Loading branch information
jart authored Aug 18, 2017
1 parent 7fe6f60 commit c1be95b
Show file tree
Hide file tree
Showing 26 changed files with 2,904 additions and 278 deletions.
4 changes: 2 additions & 2 deletions tensorboard/backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

from tensorboard import db
from tensorboard.backend import http_util
from tensorboard.backend.event_processing import event_accumulator
from tensorboard.backend.event_processing import event_multiplexer
from tensorboard.backend.event_processing import plugin_event_accumulator as event_accumulator # pylint: disable=line-too-long
from tensorboard.backend.event_processing import plugin_event_multiplexer as event_multiplexer # pylint: disable=line-too-long
from tensorboard.plugins import base_plugin
from tensorboard.plugins.audio import metadata as audio_metadata
from tensorboard.plugins.core import core_plugin
Expand Down
2 changes: 1 addition & 1 deletion tensorboard/backend/application_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

from tensorboard import main as tensorboard
from tensorboard.backend import application
from tensorboard.backend.event_processing import event_multiplexer
from tensorboard.backend.event_processing import plugin_event_multiplexer as event_multiplexer # pylint: disable=line-too-long
from tensorboard.plugins import base_plugin


Expand Down
37 changes: 35 additions & 2 deletions tensorboard/backend/event_processing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ py_test(

py_library(
name = "event_accumulator",
srcs = ["event_accumulator.py"],
srcs = [
"event_accumulator.py",
"plugin_event_accumulator.py",
],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
Expand Down Expand Up @@ -103,9 +106,27 @@ py_test(
],
)

py_test(
name = "plugin_event_accumulator_test",
size = "small",
srcs = ["plugin_event_accumulator_test.py"],
srcs_version = "PY2AND3",
deps = [
":event_accumulator",
"//tensorboard:expect_tensorflow_installed",
"//tensorboard/plugins/audio:summary",
"//tensorboard/plugins/distribution:compressor",
"//tensorboard/plugins/image:summary",
"//tensorboard/plugins/scalar:summary",
],
)

py_library(
name = "event_multiplexer",
srcs = ["event_multiplexer.py"],
srcs = [
"event_multiplexer.py",
"plugin_event_multiplexer.py",
],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
Expand All @@ -129,6 +150,18 @@ py_test(
],
)

py_test(
name = "plugin_event_multiplexer_test",
size = "small",
srcs = ["plugin_event_multiplexer_test.py"],
srcs_version = "PY2AND3",
deps = [
":event_accumulator",
":event_multiplexer",
"//tensorboard:expect_tensorflow_installed",
],
)

py_library(
name = "plugin_asset_util",
srcs = ["plugin_asset_util.py"],
Expand Down
Loading

0 comments on commit c1be95b

Please sign in to comment.