Skip to content

Commit 658c803

Browse files
[bigbird] move bigbird from nlp/projects to official/projects
PiperOrigin-RevId: 418851251
1 parent a7e6097 commit 658c803

File tree

11 files changed

+7
-7
lines changed

11 files changed

+7
-7
lines changed

official/nlp/configs/encoders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
1717
Includes configurations and factory methods.
1818
"""
19+
import dataclasses
1920
from typing import Optional
2021

21-
import dataclasses
2222
import gin
2323
import tensorflow as tf
2424

2525
from official.modeling import hyperparams
2626
from official.modeling import tf_utils
2727
from official.nlp.modeling import layers
2828
from official.nlp.modeling import networks
29-
from official.nlp.projects.bigbird import encoder as bigbird_encoder
29+
from official.projects.bigbird import encoder as bigbird_encoder
3030

3131

3232
@dataclasses.dataclass
File renamed without changes.

official/nlp/projects/bigbird/encoder.py renamed to official/projects/bigbird/encoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
from official.modeling import activations
2121
from official.nlp import modeling
2222
from official.nlp.modeling import layers
23-
from official.nlp.projects.bigbird import recompute_grad
24-
from official.nlp.projects.bigbird import recomputing_dropout
23+
from official.projects.bigbird import recompute_grad
24+
from official.projects.bigbird import recomputing_dropout
2525

2626

2727
_MAX_SEQ_LEN = 4096

official/nlp/projects/bigbird/encoder_test.py renamed to official/projects/bigbird/encoder_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import numpy as np
1818
import tensorflow as tf
1919

20-
from official.nlp.projects.bigbird import encoder
20+
from official.projects.bigbird import encoder
2121

2222

2323
class BigBirdEncoderTest(tf.test.TestCase):

official/nlp/projects/bigbird/recomputing_dropout.py renamed to official/projects/bigbird/recomputing_dropout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import numpy as np
1818
import tensorflow as tf
1919

20-
from official.nlp.projects.bigbird import recompute_grad as recompute_grad_lib
21-
from official.nlp.projects.bigbird import stateless_dropout as stateless_dropout_lib
20+
from official.projects.bigbird import recompute_grad as recompute_grad_lib
21+
from official.projects.bigbird import stateless_dropout as stateless_dropout_lib
2222

2323

2424
# Reimplements internal function

0 commit comments

Comments
 (0)