8dc90560a7e855588268218e6bd0e3d104221aff,pytext/torchscript/module.py,ScriptPyTextVariableSizeEmbeddingModule,forward_impl,#ScriptPyTextVariableSizeEmbeddingModule#Any#Any#Any#Any#Any#,637

Before Change


        // self.uses_dense_feat() indicates use: False
        dense_feat: Optional[List[List[float]]] = None,
    ) -> List[torch.Tensor]:
        if dense_feat is not None:
            raise RuntimeError("dense feature not allowed.")

        inputs: ScriptBatchInput = ScriptBatchInput(
            texts=resolve_texts(texts, multi_texts),
            tokens=squeeze_2d(tokens),
            languages=squeeze_1d(languages),

After Change


        // self.uses_dense_feat() indicates use: False
        dense_feat: Optional[List[List[float]]] = None,
    ) -> List[torch.Tensor]:
        self.forward_validate_dense_feat(dense_feat)

        inputs: ScriptBatchInput = ScriptBatchInput(
            texts=resolve_texts(texts, multi_texts),
            tokens=squeeze_2d(tokens),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: facebookresearch/pytext
Commit Name: 8dc90560a7e855588268218e6bd0e3d104221aff
Time: 2021-02-25
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextVariableSizeEmbeddingModule
Method Name: forward_impl


Project Name: facebookresearch/pytext
Commit Name: 8dc90560a7e855588268218e6bd0e3d104221aff
Time: 2021-02-25
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextEmbeddingModuleWithDense
Method Name: forward_impl


Project Name: facebookresearch/pytext
Commit Name: 8dc90560a7e855588268218e6bd0e3d104221aff
Time: 2021-02-25
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextEmbeddingModule
Method Name: forward


Project Name: facebookresearch/pytext
Commit Name: 8dc90560a7e855588268218e6bd0e3d104221aff
Time: 2021-02-25
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextEmbeddingModule
Method Name: forward_impl


Project Name: facebookresearch/pytext
Commit Name: 8dc90560a7e855588268218e6bd0e3d104221aff
Time: 2021-02-25
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextModule
Method Name: forward_impl