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
a80c26b1
"vscode:/vscode.git/clone" did not exist on "1b903852aecd388e10f03e470fcb1993f1c871dd"
Commit
a80c26b1
authored
Nov 04, 2021
by
A. Unique TensorFlower
Committed by
Yuexin Wu
Nov 04, 2021
Browse files
Internal change
PiperOrigin-RevId: 407664875
parent
17169b3b
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
official/projects/nhnet/trainer.py
official/projects/nhnet/trainer.py
+6
-4
official/projects/nhnet/trainer_test.py
official/projects/nhnet/trainer_test.py
+3
-3
official/projects/nhnet/utils.py
official/projects/nhnet/utils.py
+1
-1
No files found.
official/
nlp
/nhnet/trainer.py
→
official/
projects
/nhnet/trainer.py
View file @
a80c26b1
...
@@ -17,18 +17,20 @@
...
@@ -17,18 +17,20 @@
import
os
import
os
# Import libraries
# Import libraries
from
absl
import
app
from
absl
import
app
from
absl
import
flags
from
absl
import
flags
from
absl
import
logging
from
absl
import
logging
from
six.moves
import
zip
from
six.moves
import
zip
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.common
import
distribute_utils
from
official.common
import
distribute_utils
from
official.modeling.hyperparams
import
params_dict
from
official.modeling.hyperparams
import
params_dict
from
official.nlp.nhnet
import
evaluation
from
official.nlp.nhnet
import
input_pipeline
from
official.nlp.nhnet
import
models
from
official.nlp.nhnet
import
optimizer
from
official.nlp.transformer
import
metrics
as
transformer_metrics
from
official.nlp.transformer
import
metrics
as
transformer_metrics
from
official.projects.nhnet
import
evaluation
from
official.projects.nhnet
import
input_pipeline
from
official.projects.nhnet
import
models
from
official.projects.nhnet
import
optimizer
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
...
...
official/
nlp
/nhnet/trainer_test.py
→
official/
projects
/nhnet/trainer_test.py
View file @
a80c26b1
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Tests for official.
nlp
.nhnet.trainer."""
"""Tests for official.
projects
.nhnet.trainer."""
import
os
import
os
...
@@ -24,8 +24,8 @@ import tensorflow as tf
...
@@ -24,8 +24,8 @@ import tensorflow as tf
from
tensorflow.python.distribute
import
combinations
from
tensorflow.python.distribute
import
combinations
from
tensorflow.python.distribute
import
strategy_combinations
from
tensorflow.python.distribute
import
strategy_combinations
# pylint: enable=g-direct-tensorflow-import
# pylint: enable=g-direct-tensorflow-import
from
official.
nlp
.nhnet
import
trainer
from
official.
projects
.nhnet
import
trainer
from
official.
nlp
.nhnet
import
utils
from
official.
projects
.nhnet
import
utils
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
trainer
.
define_flags
()
trainer
.
define_flags
()
...
...
official/
nlp
/nhnet/utils.py
→
official/
projects
/nhnet/utils.py
View file @
a80c26b1
...
@@ -20,7 +20,7 @@ import tensorflow as tf
...
@@ -20,7 +20,7 @@ import tensorflow as tf
from
official.modeling.hyperparams
import
params_dict
from
official.modeling.hyperparams
import
params_dict
from
official.nlp.bert
import
configs
from
official.nlp.bert
import
configs
from
official.
nlp
.nhnet
import
configs
as
nhnet_configs
from
official.
projects
.nhnet
import
configs
as
nhnet_configs
def
get_bert_config_from_params
(
def
get_bert_config_from_params
(
...
...
Prev
1
2
Next
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