456a508634087818c3c99e9a81f3a0b580e96bda,thinc/tests/layers/test_transforms.py,,check_transform,#Any#Any#Any#,42

Before Change




def check_transform(transform, in_data, out_data):
    model = registry.make_from_config({"config": {"@layers": transform}})["config"]
    input_checker = get_data_checker(in_data)
    output_checker = get_data_checker(out_data)
    model.initialize(in_data, out_data)
    Y, backprop = model(in_data, is_train=True)

After Change




def check_transform(transform, in_data, out_data):
    resolved, _ = registry.resolve({"config": {"@layers": transform}})
    model = resolved["config"]
    input_checker = get_data_checker(in_data)
    output_checker = get_data_checker(out_data)
    model.initialize(in_data, out_data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: 456a508634087818c3c99e9a81f3a0b580e96bda
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/layers/test_transforms.py
Class Name:
Method Name: check_transform


Project Name: explosion/thinc
Commit Name: 456a508634087818c3c99e9a81f3a0b580e96bda
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_validate_generator


Project Name: explosion/thinc
Commit Name: 456a508634087818c3c99e9a81f3a0b580e96bda
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_optimizers.py
Class Name:
Method Name: test_optimizer_schedules_from_config


Project Name: explosion/thinc
Commit Name: 456a508634087818c3c99e9a81f3a0b580e96bda
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_handle_generic_model_type


Project Name: explosion/thinc
Commit Name: 456a508634087818c3c99e9a81f3a0b580e96bda
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_partials_from_config_nested


Project Name: explosion/thinc
Commit Name: 456a508634087818c3c99e9a81f3a0b580e96bda
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_optimizers.py
Class Name:
Method Name: test_optimizers_from_config