Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
fix context in multitask (#1040)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1040

Context is not handled propertly in multitask.  This should fix it.

Differential Revision: D17860982

fbshipit-source-id: 4121ce6bd6d57e3fdfcb757756010ede30e92270
  • Loading branch information
borguz authored and facebook-github-bot committed Oct 11, 2019
1 parent fafe613 commit 0bdadb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytext/models/disjoint_multitask_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,8 @@ def arrange_model_inputs(self, tensor_dict):
def arrange_targets(self, tensor_dict):
return self.current_model.arrange_targets(tensor_dict)

def arrange_model_context(self, tensor_dict):
return self.current_model.arrange_model_context(tensor_dict)

def caffe2_export(self, tensorizers, tensor_dict, path, export_onnx_path=None):
pass

0 comments on commit 0bdadb4

Please sign in to comment.