Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 8195f34

Browse files
author
Ryan Sepassi
committed
Remove tensorflow dependency from setup.py to enable cpu installs and bump version to 1.0.5
PiperOrigin-RevId: 159767222
1 parent 0fad290 commit 8195f34

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@ cat $DECODE_FILE.$MODEL.$HPARAMS.beam$BEAM_SIZE.alpha$ALPHA.decodes
9898
## Installation
9999

100100
```
101+
# Assumes tensorflow or tensorflow-gpu installed
101102
pip install tensor2tensor
103+
104+
# Installs with tensorflow-gpu requirement
105+
pip install tensor2tensor[tensorflow_gpu]
106+
107+
# Installs with tensorflow (cpu) requirement
108+
pip install tensor2tensor[tensorflow]
102109
```
103110

104111
Binaries:

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='tensor2tensor',
8-
version='1.0.3',
8+
version='1.0.5',
99
description='Tensor2Tensor',
1010
author='Google Inc.',
1111
author_email='no-reply@google.com',
@@ -17,8 +17,11 @@
1717
'numpy',
1818
'sympy',
1919
'six',
20-
'tensorflow-gpu>=1.2.0rc1',
2120
],
21+
extras_require={
22+
'tensorflow': ['tensorflow>=1.2.0rc1'],
23+
'tensorflow_gpu': ['tensorflow-gpu>=1.2.0rc1'],
24+
},
2225
classifiers=[
2326
'Development Status :: 4 - Beta',
2427
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)