"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "bf146fb072b8dbf49efa2f874959ad978c48bf29"
Commit 70ab1734 authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 410090466
parent cd11210c
...@@ -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
...@@ -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 *
...@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment