Skip to content

Commit

Permalink
Ensure backwards compatibility for models with source-factor-combine …
Browse files Browse the repository at this point in the history
…concat (#631)
  • Loading branch information
fhieber authored and tdomhan committed Jan 28, 2019
1 parent a6afcaa commit 9c5ed6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Note that Sockeye has checks in place to not translate with an old model that wa

Each version section may have have subsections for: _Added_, _Changed_, _Removed_, _Deprecated_, and _Fixed_.

## [1.18.71]
- Fixed default setting of source factor combination to be 'concat' for backwards compatibility.

## [1.18.70]
### Added
- Sockeye now outputs fields found in a JSON input object, if they are not overwritten by Sockeye. This behavior can be enabled by selecting `--json-input` (to read input as a JSON object) and `--output-type json` (to write a JSON object to output).
Expand Down
2 changes: 1 addition & 1 deletion sockeye/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.

__version__ = '1.18.70'
__version__ = '1.18.71'
2 changes: 1 addition & 1 deletion sockeye/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def __init__(self,
num_embed: int,
dropout: float,
factor_configs: Optional[List[FactorConfig]] = None,
source_factors_combine: str = C.SOURCE_FACTORS_COMBINE_SUM,
source_factors_combine: str = C.SOURCE_FACTORS_COMBINE_CONCAT,
dtype: str = C.DTYPE_FP32) -> None:
super().__init__()
self.vocab_size = vocab_size
Expand Down

1 comment on commit 9c5ed6e

@mjpost
Copy link
Contributor

@mjpost mjpost commented on 9c5ed6e Jan 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry about that...

Please sign in to comment.