886e263efd4c0ad85a6c462e668a26177d0a8716,onmt/modules/StructuredAttention.py,,,#,44
Before Change
if __name__ == "__main__":
logging = onmt.io.IO.set_logger("StructuredAttention.py")
dtree = MatrixTree()
q = torch.rand(1, 5, 5).cuda()
marg = dtree.forward(q)
logging.info(marg.sum(1))
After Change
if __name__ == "__main__":
logger = get_logger("StructuredAttention.log")
dtree = MatrixTree()
q = torch.rand(1, 5, 5).cuda()
marg = dtree.forward(q)
logger.info(marg.sum(1))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: OpenNMT/OpenNMT-py
Commit Name: 886e263efd4c0ad85a6c462e668a26177d0a8716
Time: 2018-06-10
Author: dengyuntian@gmail.com
File Name: onmt/modules/StructuredAttention.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: 548bb0d2d3b4862ab7fc6b9e497882d8d3e9ab96
Time: 2018-06-10
Author: dengyuntian@gmail.com
File Name: tools/test_rouge.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: 548bb0d2d3b4862ab7fc6b9e497882d8d3e9ab96
Time: 2018-06-10
Author: dengyuntian@gmail.com
File Name: tools/extract_embeddings.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: 548bb0d2d3b4862ab7fc6b9e497882d8d3e9ab96
Time: 2018-06-10
Author: dengyuntian@gmail.com
File Name: tools/embeddings_to_torch.py
Class Name:
Method Name: