Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
696a366
add interactive cli for python converter
pyu10055 Apr 17, 2019
96fe586
Merge branch 'master' into interactive-cli
pyu10055 Jun 24, 2019
f0f6989
add auto looking up the saved model tags and signatures
pyu10055 Jun 25, 2019
e944f24
fixed pylint errors and added tests
pyu10055 Jun 28, 2019
7e93a4f
adding more docstrings
pyu10055 Jun 29, 2019
c9a63dc
fix typo
pyu10055 Jul 1, 2019
3d9d5ac
merged master
pyu10055 Jul 1, 2019
82a0648
update the cli workflow according to the design doc comments
pyu10055 Jul 3, 2019
91f781e
fix pylint
pyu10055 Jul 3, 2019
ea5ed07
show the dtype string instead of value
pyu10055 Jul 3, 2019
093c8aa
fix pylint error
pyu10055 Jul 3, 2019
3431a07
move to questionary pip to support prompt_toolkit 2
pyu10055 Jul 17, 2019
1d6382d
Merge branch 'master' into interactive-cli
pyu10055 Jul 29, 2019
0c7d70b
update the README and fixed the tests
pyu10055 Jul 29, 2019
9acd99a
addressed the comments and add dryrun arg to generate the raw convert…
pyu10055 Jul 30, 2019
d24ad9b
fixed bugs
pyu10055 Jul 30, 2019
a4ea88f
address comments
pyu10055 Jul 30, 2019
4512586
use tuple instead of list
pyu10055 Jul 30, 2019
066af81
address the comments
pyu10055 Jul 31, 2019
0cc44e6
update compression choices
pyu10055 Aug 1, 2019
e2135a4
fix pylint error
pyu10055 Aug 1, 2019
4cdcda8
more pylint error
pyu10055 Aug 1, 2019
c245c3a
Merge branch 'master' into interactive-cli
pyu10055 Aug 1, 2019
89d52a1
used listdir to support py2
pyu10055 Aug 2, 2019
4995679
update text
pyu10055 Aug 2, 2019
725ddd2
fix pylint error
pyu10055 Aug 6, 2019
a0ce222
Merge branch 'master' into interactive-cli
pyu10055 Aug 6, 2019
0193b61
addressed comments
pyu10055 Aug 6, 2019
bd76a7f
Merge branch 'master' into interactive-cli
pyu10055 Aug 6, 2019
fe61a3d
Merge branch 'interactive-cli' of github.com:tensorflow/web into inte…
pyu10055 Aug 6, 2019
d4bc566
Merge branch 'master' into interactive-cli
pyu10055 Aug 14, 2019
fc509d2
Merge branch 'master' into interactive-cli
pyu10055 Aug 14, 2019
9c1d0e4
fixed test error
pyu10055 Aug 14, 2019
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 python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ numpy==1.16.4
six==1.11.0
tensorflow==1.14.0
tensorflow-hub==0.5.0
PyInquirer==1.0.3
2 changes: 2 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def _get_requirements(file):

CONSOLE_SCRIPTS = [
'tensorflowjs_converter = tensorflowjs.converters.converter:main',
'tensorflowjs_cli = tensorflowjs.cli:main',
]

setuptools.setup(
Expand Down Expand Up @@ -54,6 +55,7 @@ def _get_requirements(file):
],
py_modules=[
'tensorflowjs',
'tensorflowjs.cli',
'tensorflowjs.version',
'tensorflowjs.quantization',
'tensorflowjs.read_weights',
Expand Down
22 changes: 22 additions & 0 deletions python/tensorflowjs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,28 @@ py_test(
],
)

py_test(
name = "cli_test",
srcs = ["cli_test.py"],
srcs_version = "PY2AND3",
deps = [
":expect_numpy_installed",
":cli",
],
)

py_binary(
name = "cli",
srcs = ["cli.py"],
srcs_version = "PY2AND3",
deps = [
":converters/converter",
"//tensorflowjs:expect_h5py_installed",
"//tensorflowjs:expect_keras_installed",
"//tensorflowjs:expect_tensorflow_installed",
],
)

# A filegroup BUILD target that includes all the op list json files in the
# the op_list/ folder. The op_list folder itself is a symbolic link to the
# actual op_list folder under src/.
Expand Down
1 change: 1 addition & 0 deletions python/tensorflowjs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
from tensorflowjs import converters
from tensorflowjs import quantization
from tensorflowjs import version
from tensorflowjs import cli

__version__ = version.version
Loading