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
457064e1
Commit
457064e1
authored
May 18, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 312096778
parent
ef61bae9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
7 deletions
+0
-7
official/nlp/albert/run_classifier.py
official/nlp/albert/run_classifier.py
+0
-2
official/nlp/albert/run_squad.py
official/nlp/albert/run_squad.py
+0
-2
official/nlp/bert/run_classifier.py
official/nlp/bert/run_classifier.py
+0
-1
official/nlp/bert/run_pretraining.py
official/nlp/bert/run_pretraining.py
+0
-1
official/nlp/bert/run_squad.py
official/nlp/bert/run_squad.py
+0
-1
No files found.
official/nlp/albert/run_classifier.py
View file @
457064e1
...
@@ -32,8 +32,6 @@ FLAGS = flags.FLAGS
...
@@ -32,8 +32,6 @@ FLAGS = flags.FLAGS
def
main
(
_
):
def
main
(
_
):
# Users should always run this script under TF 2.x
with
tf
.
io
.
gfile
.
GFile
(
FLAGS
.
input_meta_data_path
,
'rb'
)
as
reader
:
with
tf
.
io
.
gfile
.
GFile
(
FLAGS
.
input_meta_data_path
,
'rb'
)
as
reader
:
input_meta_data
=
json
.
loads
(
reader
.
read
().
decode
(
'utf-8'
))
input_meta_data
=
json
.
loads
(
reader
.
read
().
decode
(
'utf-8'
))
...
...
official/nlp/albert/run_squad.py
View file @
457064e1
...
@@ -94,8 +94,6 @@ def export_squad(model_export_path, input_meta_data):
...
@@ -94,8 +94,6 @@ def export_squad(model_export_path, input_meta_data):
def
main
(
_
):
def
main
(
_
):
# Users should always run this script under TF 2.x
with
tf
.
io
.
gfile
.
GFile
(
FLAGS
.
input_meta_data_path
,
'rb'
)
as
reader
:
with
tf
.
io
.
gfile
.
GFile
(
FLAGS
.
input_meta_data_path
,
'rb'
)
as
reader
:
input_meta_data
=
json
.
loads
(
reader
.
read
().
decode
(
'utf-8'
))
input_meta_data
=
json
.
loads
(
reader
.
read
().
decode
(
'utf-8'
))
...
...
official/nlp/bert/run_classifier.py
View file @
457064e1
...
@@ -434,7 +434,6 @@ def custom_main(custom_callbacks=None):
...
@@ -434,7 +434,6 @@ def custom_main(custom_callbacks=None):
def
main
(
_
):
def
main
(
_
):
# Users should always run this script under TF 2.x
custom_main
(
custom_callbacks
=
None
)
custom_main
(
custom_callbacks
=
None
)
...
...
official/nlp/bert/run_pretraining.py
View file @
457064e1
...
@@ -180,7 +180,6 @@ def run_bert_pretrain(strategy, custom_callbacks=None):
...
@@ -180,7 +180,6 @@ def run_bert_pretrain(strategy, custom_callbacks=None):
def
main
(
_
):
def
main
(
_
):
# Users should always run this script under TF 2.x
gin
.
parse_config_files_and_bindings
(
FLAGS
.
gin_file
,
FLAGS
.
gin_param
)
gin
.
parse_config_files_and_bindings
(
FLAGS
.
gin_file
,
FLAGS
.
gin_param
)
if
not
FLAGS
.
model_dir
:
if
not
FLAGS
.
model_dir
:
FLAGS
.
model_dir
=
'/tmp/bert20/'
FLAGS
.
model_dir
=
'/tmp/bert20/'
...
...
official/nlp/bert/run_squad.py
View file @
457064e1
...
@@ -91,7 +91,6 @@ def export_squad(model_export_path, input_meta_data):
...
@@ -91,7 +91,6 @@ def export_squad(model_export_path, input_meta_data):
def
main
(
_
):
def
main
(
_
):
# Users should always run this script under TF 2.x
gin
.
parse_config_files_and_bindings
(
FLAGS
.
gin_file
,
FLAGS
.
gin_param
)
gin
.
parse_config_files_and_bindings
(
FLAGS
.
gin_file
,
FLAGS
.
gin_param
)
with
tf
.
io
.
gfile
.
GFile
(
FLAGS
.
input_meta_data_path
,
'rb'
)
as
reader
:
with
tf
.
io
.
gfile
.
GFile
(
FLAGS
.
input_meta_data_path
,
'rb'
)
as
reader
:
...
...
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