Skip to content

Commit c1fb3df

Browse files
arjungtensorflow-copybara
authored andcommitted
Rename the graph building binary for consistency with the 'input_maker' binary.
- graph_builder_main.py -> graph_builder.py PiperOrigin-RevId: 272919759
1 parent 684ffad commit c1fb3df

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

neural_structured_learning/tools/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ py_test(
8282
)
8383

8484
py_binary(
85-
name = "graph_builder_main",
86-
srcs = ["graph_builder_main.py"],
85+
name = "graph_builder",
86+
srcs = ["graph_builder.py"],
8787
python_version = "PY3",
8888
deps = [
8989
":graph_builder_lib",

neural_structured_learning/tools/graph_builder_main.py renamed to neural_structured_learning/tools/graph_builder.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
1919
USAGE:
2020
21-
`python graph_builder_main.py` [*flags*] *input_features.tfr ...
22-
output_graph.tsv*
21+
`python graph_builder.py` [*flags*] *input_features.tfr... output_graph.tsv*
2322
24-
For details about this program's flags, run `python graph_builder_main.py
25-
--help`.
23+
For details about this program's flags, run `python graph_builder.py --help`.
2624
"""
2725

2826
from __future__ import absolute_import
@@ -36,7 +34,7 @@
3634

3735

3836
def _main(argv):
39-
"""Main function for running the graph_builder_main program."""
37+
"""Main function for running the graph_builder program."""
4038
flag = flags.FLAGS
4139
flag.showprefixforinfo = False
4240
if len(argv) < 3:

neural_structured_learning/tools/graph_builder_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
r"""Library to build a graph based on dense input features (embeddings).
1616
1717
A python-based program for graph building also exists on
18-
[GitHub](https://github.com/tensorflow/neural-structured-learning/tree/master/neural_structured_learning/tools/graph_builder_main.py).
18+
[GitHub](https://github.com/tensorflow/neural-structured-learning/tree/master/neural_structured_learning/tools/graph_builder.py).
1919
"""
2020

2121
from __future__ import absolute_import

0 commit comments

Comments
 (0)