efc72ec0c51ba993a2d7d7fe629d21db7a5a4a50,tensorflow_/tensorflowcv/models/resnet.py,,get_resnet,#Any#Any#Any#Any#Any#Any#Any#,473

Before Change


        if (model_name is None) or (not model_name):
            raise ValueError("Parameter `model_name` should be properly initialized for loading pretrained model.")
        from .model_store import get_model_file
        net_file_path = get_model_file(
            model_name=model_name,
            local_model_store_dir_path=root)
    else:
        net_file_path = None

    return net_lambda, net_file_path


def resnet10(**kwargs):
    

After Change


        if (model_name is None) or (not model_name):
            raise ValueError("Parameter `model_name` should be properly initialized for loading pretrained model.")
        from .model_store import download_state_dict
        net.state_dict, net.file_path = download_state_dict(
            model_name=model_name,
            local_model_store_dir_path=root)
    else:
        net.state_dict = None
        net.file_path = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 13

Non-data size: 13

Instances


Project Name: osmr/imgclsmob
Commit Name: efc72ec0c51ba993a2d7d7fe629d21db7a5a4a50
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/resnet.py
Class Name:
Method Name: get_resnet


Project Name: osmr/imgclsmob
Commit Name: efc72ec0c51ba993a2d7d7fe629d21db7a5a4a50
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/menet.py
Class Name:
Method Name: get_menet


Project Name: osmr/imgclsmob
Commit Name: efc72ec0c51ba993a2d7d7fe629d21db7a5a4a50
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/mobilenet.py
Class Name:
Method Name: get_mobilenet


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/resnext.py
Class Name:
Method Name: get_resnext


Project Name: osmr/imgclsmob
Commit Name: ec2f58238528efe52b63852d341b6f600d5795ae
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/darknet.py
Class Name:
Method Name: get_darknet


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/preresnet.py
Class Name:
Method Name: get_preresnet


Project Name: osmr/imgclsmob
Commit Name: efc72ec0c51ba993a2d7d7fe629d21db7a5a4a50
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/densenet.py
Class Name:
Method Name: get_densenet


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/shufflenetv2.py
Class Name:
Method Name: get_shufflenetv2


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/mobilenetv2.py
Class Name:
Method Name: get_mobilenetv2


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/squeezenet.py
Class Name:
Method Name: get_squeezenet


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/squeezenext.py
Class Name:
Method Name: get_squeezenext


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/shufflenet.py
Class Name:
Method Name: get_shufflenet


Project Name: osmr/imgclsmob
Commit Name: 1fe76617617990c58d9fa5914b8595d91fec6331
Time: 2018-10-29
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/senet.py
Class Name:
Method Name: get_senet