a5052dec5775a39c4d5cbeae18b540a66ebaf5cc,pytext/task/tasks.py,PairwiseClassificationTask,torchscript_export,#PairwiseClassificationTask#Any#Any#,222

Before Change


            )
        if export_path is not None:
            print(f"Saving torchscript model to: {export_path}")
            trace.save(export_path)
        return trace


class PairwiseClassificationForDenseRetrievalTask(PairwiseClassificationTask):

After Change


            )
        if export_path is not None:
            print(f"Saving torchscript model to: {export_path}")
            with PathManager.open(export_path, "wb") as f:
                torch.jit.save(trace, f)
        return trace


class PairwiseClassificationForDenseRetrievalTask(PairwiseClassificationTask):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: facebookresearch/pytext
Commit Name: a5052dec5775a39c4d5cbeae18b540a66ebaf5cc
Time: 2020-09-25
Author: stevenliu@fb.com
File Name: pytext/task/tasks.py
Class Name: PairwiseClassificationTask
Method Name: torchscript_export


Project Name: facebookresearch/pytext
Commit Name: a5052dec5775a39c4d5cbeae18b540a66ebaf5cc
Time: 2020-09-25
Author: stevenliu@fb.com
File Name: pytext/task/new_task.py
Class Name: _NewTask
Method Name: torchscript_export


Project Name: facebookresearch/pytext
Commit Name: a5052dec5775a39c4d5cbeae18b540a66ebaf5cc
Time: 2020-09-25
Author: stevenliu@fb.com
File Name: pytext/task/tasks.py
Class Name: SequenceLabelingTask
Method Name: torchscript_export