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
3063aeb3
"examples/vscode:/vscode.git/clone" did not exist on "82d56cf192f3a3c52e0708b6c8db4a6d959244dd"
Commit
3063aeb3
authored
Jan 28, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jan 28, 2021
Browse files
Remove compat.v2 import.
PiperOrigin-RevId: 354439331
parent
d5a8f2a8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
23 deletions
+5
-23
official/recommendation/create_ncf_data.py
official/recommendation/create_ncf_data.py
+1
-5
official/recommendation/ncf_input_pipeline.py
official/recommendation/ncf_input_pipeline.py
+1
-6
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+1
-5
official/staging/training/grad_utils.py
official/staging/training/grad_utils.py
+1
-6
official/vision/beta/serving/export_saved_model_lib.py
official/vision/beta/serving/export_saved_model_lib.py
+1
-1
No files found.
official/recommendation/create_ncf_data.py
View file @
3063aeb3
...
@@ -14,17 +14,13 @@
...
@@ -14,17 +14,13 @@
# ==============================================================================
# ==============================================================================
"""Binary to generate training/evaluation dataset for NCF model."""
"""Binary to generate training/evaluation dataset for NCF model."""
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
json
import
json
# pylint: disable=g-bad-import-order
# pylint: disable=g-bad-import-order
# Import libraries
# Import libraries
from
absl
import
app
from
absl
import
app
from
absl
import
flags
from
absl
import
flags
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
# pylint: enable=g-bad-import-order
# pylint: enable=g-bad-import-order
from
official.recommendation
import
movielens
from
official.recommendation
import
movielens
...
...
official/recommendation/ncf_input_pipeline.py
View file @
3063aeb3
...
@@ -14,15 +14,10 @@
...
@@ -14,15 +14,10 @@
# ==============================================================================
# ==============================================================================
"""NCF model input pipeline."""
"""NCF model input pipeline."""
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
functools
import
functools
# pylint: disable=g-bad-import-order
# pylint: disable=g-bad-import-order
import
tensorflow
as
tf
import
tensorflow.compat.v2
as
tf
# pylint: enable=g-bad-import-order
# pylint: enable=g-bad-import-order
from
official.recommendation
import
constants
as
rconst
from
official.recommendation
import
constants
as
rconst
...
...
official/recommendation/ncf_keras_main.py
View file @
3063aeb3
...
@@ -18,10 +18,6 @@ The NeuMF model assembles both MF and MLP models under the NCF framework. Check
...
@@ -18,10 +18,6 @@ The NeuMF model assembles both MF and MLP models under the NCF framework. Check
`neumf_model.py` for more details about the models.
`neumf_model.py` for more details about the models.
"""
"""
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
json
import
json
import
os
import
os
...
@@ -30,7 +26,7 @@ import os
...
@@ -30,7 +26,7 @@ import os
from
absl
import
app
from
absl
import
app
from
absl
import
flags
from
absl
import
flags
from
absl
import
logging
from
absl
import
logging
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
# pylint: enable=g-bad-import-order
# pylint: enable=g-bad-import-order
from
official.common
import
distribute_utils
from
official.common
import
distribute_utils
...
...
official/staging/training/grad_utils.py
View file @
3063aeb3
...
@@ -14,14 +14,9 @@
...
@@ -14,14 +14,9 @@
# ==============================================================================
# ==============================================================================
"""Some gradient util functions to help users writing custom training loop."""
"""Some gradient util functions to help users writing custom training loop."""
from
__future__
import
absolute_import
from
__future__
import
division
# from __future__ import google_type_annotations
from
__future__
import
print_function
from
absl
import
logging
from
absl
import
logging
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
def
_filter_grads
(
grads_and_vars
):
def
_filter_grads
(
grads_and_vars
):
...
...
official/vision/beta/serving/export_saved_model_lib.py
View file @
3063aeb3
...
@@ -17,7 +17,7 @@ r"""Vision models export utility function for serving/inference."""
...
@@ -17,7 +17,7 @@ r"""Vision models export utility function for serving/inference."""
import
os
import
os
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.core
import
train_utils
from
official.core
import
train_utils
from
official.vision.beta
import
configs
from
official.vision.beta
import
configs
...
...
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