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
70ab1734
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "bf146fb072b8dbf49efa2f874959ad978c48bf29"
Commit
70ab1734
authored
Nov 15, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Nov 15, 2021
Browse files
Internal change
PiperOrigin-RevId: 410090466
parent
cd11210c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
official/nlp/tasks/__init__.py
official/nlp/tasks/__init__.py
+8
-0
tensorflow_models/nlp/__init__.py
tensorflow_models/nlp/__init__.py
+1
-0
tensorflow_models/tensorflow_models_test.py
tensorflow_models/tensorflow_models_test.py
+1
-0
No files found.
official/nlp/tasks/__init__.py
View file @
70ab1734
...
@@ -12,3 +12,11 @@
...
@@ -12,3 +12,11 @@
# 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.
"""TensorFlow Models NLP Tasks."""
# pylint: disable=g-multiple-import
from
official.nlp.tasks.electra_task
import
ElectraPretrainConfig
,
ElectraPretrainTask
from
official.nlp.tasks.masked_lm
import
MaskedLMConfig
,
MaskedLMTask
from
official.nlp.tasks.question_answering
import
QuestionAnsweringConfig
,
QuestionAnsweringTask
from
official.nlp.tasks.sentence_prediction
import
SentencePredictionConfig
,
SentencePredictionTask
from
official.nlp.tasks.tagging
import
TaggingConfig
,
TaggingTask
from
official.nlp.tasks.translation
import
TranslationConfig
,
TranslationTask
tensorflow_models/nlp/__init__.py
View file @
70ab1734
...
@@ -13,4 +13,5 @@
...
@@ -13,4 +13,5 @@
# limitations under the License.
# limitations under the License.
"""TensorFlow Models NLP Libraries."""
"""TensorFlow Models NLP Libraries."""
from
official.nlp
import
tasks
from
official.nlp.modeling
import
*
from
official.nlp.modeling
import
*
tensorflow_models/tensorflow_models_test.py
View file @
70ab1734
...
@@ -28,6 +28,7 @@ class TensorflowModelsTest(tf.test.TestCase):
...
@@ -28,6 +28,7 @@ class TensorflowModelsTest(tf.test.TestCase):
def
testNLPImport
(
self
):
def
testNLPImport
(
self
):
_
=
tfm
.
nlp
.
layers
.
TransformerEncoderBlock
(
_
=
tfm
.
nlp
.
layers
.
TransformerEncoderBlock
(
num_attention_heads
=
2
,
inner_dim
=
10
,
inner_activation
=
'relu'
)
num_attention_heads
=
2
,
inner_dim
=
10
,
inner_activation
=
'relu'
)
_
=
tfm
.
nlp
.
tasks
.
TaggingTask
(
params
=
tfm
.
nlp
.
tasks
.
TaggingConfig
())
def
testCommonImports
(
self
):
def
testCommonImports
(
self
):
_
=
tfm
.
hyperparams
.
Config
()
_
=
tfm
.
hyperparams
.
Config
()
...
...
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