Skip to content

Commit

Permalink
revert name change (#2647)
Browse files Browse the repository at this point in the history
Signed-off-by: ericharper <complex451@gmail.com>
  • Loading branch information
ericharper authored Aug 12, 2021
1 parent 1a57cec commit 7d6ceeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -1163,8 +1163,8 @@ pipeline {
stage('L2: NMT Attention is All You Need Inference') {
when {
anyOf {
branch 'v1.0.0'
changeRequest target: 'v1.0.0'
branch 'main'
changeRequest target: 'main'
}
}
failFast true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(self, cfg: MTEncDecModelConfig, trainer: Trainer = None):
model_name = encoder_cfg_dict.pop('model_name', None)
pretrained = encoder_cfg_dict.pop('pretrained', False)
checkpoint_file = encoder_cfg_dict.pop('checkpoint_file', None)
self._encoder = get_transformer(
self.encoder = get_transformer(
library=library,
model_name=model_name,
pretrained=pretrained,
Expand All @@ -156,7 +156,7 @@ def __init__(self, cfg: MTEncDecModelConfig, trainer: Trainer = None):
model_name = decoder_cfg_dict.pop('model_name', None)
pretrained = decoder_cfg_dict.pop('pretrained', False)
decoder_cfg_dict['hidden_size'] = self.encoder.hidden_size
self._decoder = get_transformer(
self.decoder = get_transformer(
library=library,
model_name=model_name,
pretrained=pretrained,
Expand Down

0 comments on commit 7d6ceeb

Please sign in to comment.