5e82853bb435e7c46e2e3bafa2c1d0a4c40ffb38,dvalib/indexer.py,BaseIndexer,apply,#BaseIndexer#Any#,20

Before Change


        tensor = self.transform(PIL.Image.open(path).convert("RGB")).unsqueeze_(0)
        if torch.cuda.is_available():
            tensor = torch.FloatTensor(tensor).cuda()
        return self.net(Variable(tensor)).data.numpy()

    def load_index(self,path):
        temp_index = []
        for dirname in os.listdir(path +"/"):

After Change


            tensor = torch.FloatTensor(tensor).cuda()
        result = self.net(Variable(tensor))
        if torch.cuda.is_available():
            result = result.data.cpu()
        return result.data.numpy()

    def load_index(self,path):
        temp_index = []
        for dirname in os.listdir(path +"/"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 5e82853bb435e7c46e2e3bafa2c1d0a4c40ffb38
Time: 2017-02-03
Author: AKSHAYUBHAT@GMAIL.COM
File Name: dvalib/indexer.py
Class Name: BaseIndexer
Method Name: apply


Project Name: keras-team/keras
Commit Name: 4d857be62bbeabf1ba6374492d13d63a097891ed
Time: 2019-03-05
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: get_value


Project Name: microsoft/nni
Commit Name: 4e2d8cd89163c0fd4b4e14e4f3d13b58d7e3b29f
Time: 2020-10-18
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: examples/nas/naive-tf/train.py
Class Name:
Method Name: accuracy