1ef3ad90a3423ed15ca41e0ea4e81012ebe84a9f,catalyst/data/scripts/project_embeddings.py,,main,#Any#Any#,88
Before Change
[load_image(name, args.img_size) for name in image_names], axis=0
)
img_data = (
img_data.transpose((0, 3, 1, 2)) / 255.0 // noqa: WPS432
).astype(np.float32)
img_data = torch.from_numpy(img_data)
else:
img_data = None
summary_writer = SummaryWriter(args.out_dir)
After Change
raise ValueError("meta-cols must not be None")
features = np.load(args.in_npy, mmap_mode="r")
assert len(df) == len(features)
if args.num_rows is not None:
indices = np.random.choice(len(df), args.num_rows)
features = features[indices, :]
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances Project Name: catalyst-team/catalyst
Commit Name: 1ef3ad90a3423ed15ca41e0ea4e81012ebe84a9f
Time: 2020-08-11
Author: scitator@gmail.com
File Name: catalyst/data/scripts/project_embeddings.py
Class Name:
Method Name: main
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 9f7738878e833a435fa4ca0a47db9515100cfaaf
Time: 2018-10-15
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/transformer_test.py
Class Name: TransformerTest
Method Name: testBuildFutureMaskWithMaxLen
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c32f1a428f7f34aa70e12a9428bcd011ad05f136
Time: 2020-06-05
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/evasion/test_square_attack.py
Class Name:
Method Name: test_generate
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 9f7738878e833a435fa4ca0a47db9515100cfaaf
Time: 2018-10-15
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/transformer_test.py
Class Name: TransformerTest
Method Name: testBuildFutureMask
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c32f1a428f7f34aa70e12a9428bcd011ad05f136
Time: 2020-06-05
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/evasion/test_auto_projected_gradient_descent.py
Class Name:
Method Name: test_generate