File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 15
15
"""Transformer decoder that mimics a BERT encoder, to load BERT checkpoints."""
16
16
17
17
import tensorflow as tf
18
+
19
+ from official .legacy .transformer import model_utils as transformer_utils
18
20
from official .modeling import tf_utils
19
21
from official .nlp .modeling import layers
20
- from official .nlp .transformer import model_utils as transformer_utils
21
22
22
23
23
24
class TransformerDecoder (tf .keras .layers .Layer ):
Original file line number Diff line number Diff line change 22
22
import numpy as np
23
23
import tensorflow as tf
24
24
25
- from official .nlp .transformer import metrics as metrics_v2
26
- from official .nlp .transformer .utils import metrics
25
+ from official .legacy .transformer import metrics as metrics_v2
26
+ from official .legacy .transformer .utils import metrics
27
27
from official .projects .nhnet import input_pipeline
28
28
from official .projects .nhnet import models
29
29
Original file line number Diff line number Diff line change 25
25
import tensorflow as tf
26
26
27
27
from official .common import distribute_utils
28
+ from official .legacy .transformer import metrics as transformer_metrics
28
29
from official .modeling .hyperparams import params_dict
29
- from official .nlp .transformer import metrics as transformer_metrics
30
30
from official .projects .nhnet import evaluation
31
31
from official .projects .nhnet import input_pipeline
32
32
from official .projects .nhnet import models
You can’t perform that action at this time.
0 commit comments