Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
b5248395
Commit
b5248395
authored
Dec 16, 2021
by
Yuexin Wu
Committed by
A. Unique TensorFlower
Dec 16, 2021
Browse files
Separate tensorflow version requirement setup.
PiperOrigin-RevId: 416917874
parent
52bf8afd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
official/pip_package/setup.py
official/pip_package/setup.py
+3
-2
No files found.
official/pip_package/setup.py
View file @
b5248395
...
@@ -21,6 +21,7 @@ from setuptools import find_packages
...
@@ -21,6 +21,7 @@ from setuptools import find_packages
from
setuptools
import
setup
from
setuptools
import
setup
version
=
'2.7.0'
version
=
'2.7.0'
tf_version
=
'2.7.0'
# Major version.
project_name
=
'tf-models-official'
project_name
=
'tf-models-official'
...
@@ -61,8 +62,8 @@ if project_name == 'tf-models-nightly':
...
@@ -61,8 +62,8 @@ if project_name == 'tf-models-nightly':
install_requires
.
append
(
'tf-nightly'
)
install_requires
.
append
(
'tf-nightly'
)
install_requires
.
append
(
'tensorflow-text-nightly'
)
install_requires
.
append
(
'tensorflow-text-nightly'
)
else
:
else
:
install_requires
.
append
(
f
'tensorflow~=
{
version
}
'
)
install_requires
.
append
(
f
'tensorflow~=
{
tf_
version
}
'
)
install_requires
.
append
(
f
'tensorflow-text~=
{
version
}
'
)
install_requires
.
append
(
f
'tensorflow-text~=
{
tf_
version
}
'
)
print
(
'install_requires: '
,
install_requires
)
print
(
'install_requires: '
,
install_requires
)
print
(
'dependency_links: '
,
dependency_links
)
print
(
'dependency_links: '
,
dependency_links
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment