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
426b2c6e
Commit
426b2c6e
authored
Nov 07, 2019
by
Silas-Asamoah
Committed by
Hongkun Yu
Nov 07, 2019
Browse files
Updated code to Tensorflow 2.0 (#7770)
parent
aa031d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
samples/cookbook/regression/linear_regression.py
samples/cookbook/regression/linear_regression.py
+3
-2
No files found.
samples/cookbook/regression/linear_regression.py
View file @
426b2c6e
...
...
@@ -22,6 +22,7 @@ import argparse
import
numpy
as
np
import
tensorflow
as
tf
from
absl
import
app
import
automobile_data
...
...
@@ -98,5 +99,5 @@ def main(argv):
if
__name__
==
"__main__"
:
# The Estimator periodically generates "INFO" logs; make these logs visible.
tf
.
logging
.
set_verbosity
(
tf
.
logging
.
INFO
)
tf
.
app
.
run
(
main
=
main
)
tf
.
compat
.
v1
.
logging
.
set_verbosity
(
tf
.
compat
.
v1
.
logging
.
INFO
)
app
.
run
(
main
=
main
)
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