Skip to content

Commit 27fb855

Browse files
lehougoogletensorflower-gardener
authored andcommitted
Internal change
PiperOrigin-RevId: 422638136
1 parent 143fd0b commit 27fb855

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+70
-72
lines changed

official/legacy/albert/configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import six
1818

19-
from official.nlp.bert import configs
19+
from official.legacy.bert import configs
2020

2121

2222
class AlbertConfig(configs.BertConfig):

official/nlp/bert/README.md renamed to official/legacy/bert/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**WARNING**: We are on the way to deprecate most of the code in this directory.
44
Please see
5-
[this link](https://github.com/tensorflow/models/blob/master/official/nlp/docs/train.md)
5+
[this link](../g3doc/tutorials/bert_new.md)
66
for the new tutorial and use the new code in `nlp/modeling`. This README is
77
still correct for this legacy implementation.
88

File renamed without changes.
File renamed without changes.

official/nlp/bert/bert_models.py renamed to official/legacy/bert/bert_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import tensorflow as tf
1919
import tensorflow_hub as hub
2020
from official.legacy.albert import configs as albert_configs
21+
from official.legacy.bert import configs
2122
from official.modeling import tf_utils
22-
from official.nlp.bert import configs
2323
from official.nlp.modeling import models
2424
from official.nlp.modeling import networks
2525

official/nlp/bert/bert_models_test.py renamed to official/legacy/bert/bert_models_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
import tensorflow as tf
1616

17-
from official.nlp.bert import bert_models
18-
from official.nlp.bert import configs as bert_configs
17+
from official.legacy.bert import bert_models
18+
from official.legacy.bert import configs as bert_configs
1919
from official.nlp.modeling import networks
2020

2121

File renamed without changes.

official/nlp/bert/export_tfhub.py renamed to official/legacy/bert/export_tfhub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
from absl import flags
2626
from absl import logging
2727
import tensorflow as tf
28-
from official.nlp.bert import bert_models
29-
from official.nlp.bert import configs
28+
from official.legacy.bert import bert_models
29+
from official.legacy.bert import configs
3030

3131
FLAGS = flags.FLAGS
3232

official/nlp/bert/export_tfhub_test.py renamed to official/legacy/bert/export_tfhub_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import tensorflow as tf
2222
import tensorflow_hub as hub
2323

24-
from official.nlp.bert import configs
25-
from official.nlp.bert import export_tfhub
24+
from official.legacy.bert import configs
25+
from official.legacy.bert import export_tfhub
2626

2727

2828
class ExportTfhubTest(tf.test.TestCase, parameterized.TestCase):

0 commit comments

Comments
 (0)