Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#597

RNNG model using JIT, e2e works in training time now

Reviewed By: wowitsmrinal

Differential Revision: D15001036

fbshipit-source-id: f1f278fe3b84733a965a738fe2f148a9c2c8133e
  • Loading branch information
seayoung1112 authored and facebook-github-bot committed May 30, 2019
1 parent cd8f057 commit 665fcfe
Show file tree
Hide file tree
Showing 10 changed files with 765 additions and 27 deletions.
2 changes: 1 addition & 1 deletion pytext/data/compositional_data_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _test_input_from_batch(self, batch):
text_input[0],
text_input[1],
getattr(batch, DatasetFieldName.DICT_FIELD, None),
None,
[],
getattr(batch, DatasetFieldName.CONTEXTUAL_TOKEN_EMBEDDING, None),
1,
1,
Expand Down
6 changes: 6 additions & 0 deletions pytext/models/semantic_parsers/rnng/jit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .model import RNNGModel, RNNGParserJIT


__all__ = ["RNNGParserJIT", "RNNGModel"]
Loading

0 comments on commit 665fcfe

Please sign in to comment.