22cb76a3479ceba89addb1f467c2dd573cb29026,pytext/torchscript/module.py,ScriptPyTextEmbeddingModule,forward,#ScriptPyTextEmbeddingModule#,266

Before Change


            tokens=squeeze_2d(tokens),
            languages=squeeze_1d(languages),
        )
        return self._forward(inputs)

    @torch.jit.script_method
    def make_prediction(
        self,

After Change


        // this should only be present in EmbeddingModuleWithDense
        dense_feat: Optional[List[List[float]]] = None,
    ) -> torch.Tensor:
        return self.forward_impl(
            texts,
            multi_texts,
            tokens,
            languages,
            dense_feat,
        )

    @torch.jit.script_method
    def make_prediction(
        self,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


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


Project Name: facebookresearch/pytext
Commit Name: 22cb76a3479ceba89addb1f467c2dd573cb29026
Time: 2021-02-16
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextVariableSizeEmbeddingModule
Method Name: forward


Project Name: facebookresearch/pytext
Commit Name: 22cb76a3479ceba89addb1f467c2dd573cb29026
Time: 2021-02-16
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextEmbeddingModuleWithDense
Method Name: forward