22cb76a3479ceba89addb1f467c2dd573cb29026,pytext/torchscript/module.py,ScriptPyTextEmbeddingModule,make_prediction,#ScriptPyTextEmbeddingModule#Any#,283
Before Change
start = 0
for elems in client_batch:
end = start + elems
res_list.append(flat_result.narrow(0, start, elems))
start = end
return res_list
After Change
for v in flat_result:
result_texts_any_list.append(v)
return destructure_any_list(client_batch, result_texts_any_list)
@torch.jit.script_method
def make_batch(
self,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
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: make_prediction
Project Name: facebookresearch/pytext
Commit Name: 22cb76a3479ceba89addb1f467c2dd573cb29026
Time: 2021-02-16
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: ScriptPyTextTwoTowerEmbeddingModule
Method Name: make_prediction
Project Name: pytorch/audio
Commit Name: 3bd4db86630b75bbbfb6c5c0a1a85603097bf9b2
Time: 2019-01-04
Author: david@da3.net
File Name: torchaudio/transforms.py
Class Name: SPECTROGRAM
Method Name: __call__
Project Name: pytorch/audio
Commit Name: 101e0d5f3843d144fb704ab93b11ac3b17d239a2
Time: 2019-05-16
Author: jamarshon@fb.com
File Name: torchaudio/transforms.py
Class Name: PadTrim
Method Name: __call__