e7b459de1cdabcbf13d1fd3469ef6c652a492079,model.py,DeepSpeech,get_labels,#Any#,296

Before Change



    @staticmethod
    def get_labels(model):
        model_is_cuda = next(model.parameters()).is_cuda
        return model.module._labels if model_is_cuda else model._labels

    @staticmethod
    def get_param_size(model):

After Change



    @staticmethod
    def get_labels(model):
        return model.module._labels if model.is_parallel(model) else model._labels

    @staticmethod
    def get_param_size(model):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: e7b459de1cdabcbf13d1fd3469ef6c652a492079
Time: 2018-07-12
Author: sean.narenthiran@digitalreasoning.com
File Name: model.py
Class Name: DeepSpeech
Method Name: get_labels


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: e7b459de1cdabcbf13d1fd3469ef6c652a492079
Time: 2018-07-12
Author: sean.narenthiran@digitalreasoning.com
File Name: model.py
Class Name: DeepSpeech
Method Name: serialize


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: e7b459de1cdabcbf13d1fd3469ef6c652a492079
Time: 2018-07-12
Author: sean.narenthiran@digitalreasoning.com
File Name: model.py
Class Name: DeepSpeech
Method Name: get_audio_conf


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: e7b459de1cdabcbf13d1fd3469ef6c652a492079
Time: 2018-07-12
Author: sean.narenthiran@digitalreasoning.com
File Name: model.py
Class Name: DeepSpeech
Method Name: get_meta