Skip to content

Commit

Permalink
Exposes graph_schema_pb2 for Beam sampler
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 590616562
  • Loading branch information
aferludin authored and tensorflower-gardener committed Dec 13, 2023
1 parent bf6c785 commit d7c7cb0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tensorflow_gnn/api_def/api_symbols_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
del tfgnn.models.vanilla_mpnn
del tfgnn.models

# TODO(b/316135889): remove once fixed.
del tfgnn.proto.graph_schema_pb2

##
## STEP 3: Recursively collect all module attributes exposed by the public API.
Expand Down
10 changes: 9 additions & 1 deletion tensorflow_gnn/proto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,13 @@
OriginInfo = graph_schema.OriginInfo

# Remove all names added by module imports, unless explicitly allowed here.
api_utils.remove_submodules_except(__name__, [])
api_utils.remove_submodules_except(
__name__,
[
# Workaround for Beam/pickle, required by
# `experimental/sampler/beam/sampler.py`.
# TODO(b/316135889): remove once fixed.
'graph_schema_pb2',
],
)
# LINT.ThenChange()../api_def/tfgnn-symbols.txt)

0 comments on commit d7c7cb0

Please sign in to comment.