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

Commit

Permalink
delete caffe2 export (#1307)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1307

delete caffe2 export
1. BiTransformer
2. NewBertModel
3. NewDisjointMultitaskModel

Reviewed By: snisarg

Differential Revision: D20907342

fbshipit-source-id: f8579dc68d95c92549af4e79d67723e6915d31b5
  • Loading branch information
chenyangyu1988 authored and facebook-github-bot committed Apr 9, 2020
1 parent 9548c94 commit 6abc1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytext/models/bert_classification_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def forward(
return self.decoder(representation, *args)

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

@classmethod
def from_config(cls, config: Config, tensorizers: Dict[str, Tensorizer]):
Expand Down
2 changes: 1 addition & 1 deletion pytext/models/disjoint_multitask_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ 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
raise NotImplementedError

0 comments on commit 6abc1e7

Please sign in to comment.