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: fddac1d85dd9c1725d3b6fe8d20ca0146d0c9755
  • Loading branch information
seayoung1112 authored and facebook-github-bot committed May 24, 2019
1 parent 4095d45 commit 543925c
Show file tree
Hide file tree
Showing 10 changed files with 771 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 543925c

Please sign in to comment.