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
fc2d4b69
Commit
fc2d4b69
authored
Nov 07, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Nov 07, 2021
Browse files
Internal change
PiperOrigin-RevId: 408236164
parent
7fc27530
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
tensorflow_models/__init__.py
tensorflow_models/__init__.py
+5
-0
tensorflow_models/tensorflow_models_test.py
tensorflow_models/tensorflow_models_test.py
+10
-3
No files found.
tensorflow_models/__init__.py
View file @
fc2d4b69
...
@@ -16,3 +16,8 @@
...
@@ -16,3 +16,8 @@
# pylint: disable=wildcard-import
# pylint: disable=wildcard-import
from
tensorflow_models
import
nlp
from
tensorflow_models
import
nlp
from
tensorflow_models
import
vision
from
tensorflow_models
import
vision
from
official
import
core
from
official.modeling
import
hyperparams
from
official.modeling
import
optimization
from
official.modeling
import
tf_utils
tensorflow_models/tensorflow_models_test.py
View file @
fc2d4b69
...
@@ -20,13 +20,20 @@ import tensorflow_models as tfm
...
@@ -20,13 +20,20 @@ import tensorflow_models as tfm
class
TensorflowModelsTest
(
tf
.
test
.
TestCase
):
class
TensorflowModelsTest
(
tf
.
test
.
TestCase
):
def
testImport
(
self
):
def
testVisionImport
(
self
):
_
=
tfm
.
nlp
.
layers
.
TransformerEncoderBlock
(
num_attention_heads
=
2
,
inner_dim
=
10
,
inner_activation
=
'relu'
)
_
=
tfm
.
vision
.
layers
.
SqueezeExcitation
(
_
=
tfm
.
vision
.
layers
.
SqueezeExcitation
(
in_filters
=
8
,
out_filters
=
4
,
se_ratio
=
1
)
in_filters
=
8
,
out_filters
=
4
,
se_ratio
=
1
)
_
=
tfm
.
vision
.
configs
.
image_classification
.
Losses
()
_
=
tfm
.
vision
.
configs
.
image_classification
.
Losses
()
def
testNLPImport
(
self
):
_
=
tfm
.
nlp
.
layers
.
TransformerEncoderBlock
(
num_attention_heads
=
2
,
inner_dim
=
10
,
inner_activation
=
'relu'
)
def
testCommonImports
(
self
):
_
=
tfm
.
hyperparams
.
Config
()
_
=
tfm
.
optimization
.
LinearWarmup
(
after_warmup_lr_sched
=
0.0
,
warmup_steps
=
10
,
warmup_learning_rate
=
0.1
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
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