06bb64cd6f06413528f5c634da7517350541adeb,examples/extract_image_feature.py,,main,#,24
Before Change
random.seed(42)
// Get command line arguments
parser = ParlaiParser()
parser.add_argument("-n", "--num-examples", default=10)
parser.set_defaults(datatype="train:ordered")
ImageLoader.add_cmdline_args(parser)
After Change
def main():
// Get command line arguments
parser = ParlaiParser(True, False)
parser.set_defaults(datatype="train:ordered")
opt = parser.parse_args()
bsz = opt.get("batchsize", 1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: facebookresearch/ParlAI
Commit Name: 06bb64cd6f06413528f5c634da7517350541adeb
Time: 2018-02-05
Author: kshuster@fb.com
File Name: examples/extract_image_feature.py
Class Name:
Method Name: main
Project Name: facebookresearch/ParlAI
Commit Name: b51b82fba5247663bab3996ad5a000f57bcec4e7
Time: 2020-01-22
Author: roller@fb.com
File Name: tests/test_params.py
Class Name: TestParlaiParser
Method Name: test_recommendations_group
Project Name: facebookresearch/ParlAI
Commit Name: b51b82fba5247663bab3996ad5a000f57bcec4e7
Time: 2020-01-22
Author: roller@fb.com
File Name: tests/test_params.py
Class Name: TestParlaiParser
Method Name: test_recommendations_single