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
2ddd716e
"docs/vscode:/vscode.git/clone" did not exist on "95efda42a974e20c149bcc00944c09a6261aa81f"
Commit
2ddd716e
authored
Apr 16, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Apr 17, 2020
Browse files
Remove hooks.
PiperOrigin-RevId: 306994199
parent
a29fcd96
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
5 deletions
+1
-5
official/benchmark/models/shakespeare/shakespeare_main.py
official/benchmark/models/shakespeare/shakespeare_main.py
+0
-1
official/nlp/bert/common_flags.py
official/nlp/bert/common_flags.py
+0
-1
official/recommendation/ncf_common.py
official/recommendation/ncf_common.py
+1
-2
official/recommendation/neumf_model.py
official/recommendation/neumf_model.py
+0
-1
No files found.
official/benchmark/models/shakespeare/shakespeare_main.py
View file @
2ddd716e
...
@@ -47,7 +47,6 @@ def define_flags():
...
@@ -47,7 +47,6 @@ def define_flags():
epochs_between_evals
=
False
,
epochs_between_evals
=
False
,
stop_threshold
=
False
,
stop_threshold
=
False
,
num_gpu
=
True
,
num_gpu
=
True
,
hooks
=
False
,
export_dir
=
False
,
export_dir
=
False
,
run_eagerly
=
True
,
run_eagerly
=
True
,
distribution_strategy
=
True
)
distribution_strategy
=
True
)
...
...
official/nlp/bert/common_flags.py
View file @
2ddd716e
...
@@ -39,7 +39,6 @@ def define_common_bert_flags():
...
@@ -39,7 +39,6 @@ def define_common_bert_flags():
stop_threshold
=
False
,
stop_threshold
=
False
,
batch_size
=
False
,
batch_size
=
False
,
num_gpu
=
True
,
num_gpu
=
True
,
hooks
=
False
,
export_dir
=
False
,
export_dir
=
False
,
distribution_strategy
=
True
,
distribution_strategy
=
True
,
run_eagerly
=
True
)
run_eagerly
=
True
)
...
...
official/recommendation/ncf_common.py
View file @
2ddd716e
...
@@ -149,7 +149,7 @@ def define_ncf_flags():
...
@@ -149,7 +149,7 @@ def define_ncf_flags():
flags_core
.
define_base
(
model_dir
=
True
,
clean
=
True
,
train_epochs
=
True
,
flags_core
.
define_base
(
model_dir
=
True
,
clean
=
True
,
train_epochs
=
True
,
epochs_between_evals
=
True
,
export_dir
=
False
,
epochs_between_evals
=
True
,
export_dir
=
False
,
run_eagerly
=
True
,
stop_threshold
=
True
,
num_gpu
=
True
,
run_eagerly
=
True
,
stop_threshold
=
True
,
num_gpu
=
True
,
hooks
=
True
,
distribution_strategy
=
True
)
distribution_strategy
=
True
)
flags_core
.
define_performance
(
flags_core
.
define_performance
(
synthetic_data
=
True
,
synthetic_data
=
True
,
dtype
=
True
,
dtype
=
True
,
...
@@ -168,7 +168,6 @@ def define_ncf_flags():
...
@@ -168,7 +168,6 @@ def define_ncf_flags():
data_dir
=
"/tmp/movielens-data/"
,
data_dir
=
"/tmp/movielens-data/"
,
train_epochs
=
2
,
train_epochs
=
2
,
batch_size
=
99000
,
batch_size
=
99000
,
hooks
=
"ProfilerHook"
,
tpu
=
None
tpu
=
None
)
)
...
...
official/recommendation/neumf_model.py
View file @
2ddd716e
...
@@ -126,7 +126,6 @@ def neumf_model_fn(features, labels, mode, params):
...
@@ -126,7 +126,6 @@ def neumf_model_fn(features, labels, mode, params):
weights
=
tf
.
cast
(
valid_pt_mask
,
tf
.
float32
)
weights
=
tf
.
cast
(
valid_pt_mask
,
tf
.
float32
)
)
)
# This tensor is used by logging hooks.
tf
.
identity
(
loss
,
name
=
"cross_entropy"
)
tf
.
identity
(
loss
,
name
=
"cross_entropy"
)
global_step
=
tf
.
compat
.
v1
.
train
.
get_global_step
()
global_step
=
tf
.
compat
.
v1
.
train
.
get_global_step
()
...
...
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