20ea228773616f824fa5099d0a6e51b7f829d094,tfdeploy.py,Tensor,get,#Tensor#,181

Before Change


        elif self.op is None:
            return None
        else:
            return self.op.get(name)

    def eval(self, feed_dict=None, _uuid=None):
         eval(feed_dict=None)
        Returns the value of this tensor based on the evaluation of all dependent ops and tensors.

After Change


        tensor was found.
        
        tensors = tuple(self._get(name) for name in names)
        return tensors[0] if len(names) == 1 else tensors

    def _get(self, name):
        if self.name == name:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: riga/tfdeploy
Commit Name: 20ea228773616f824fa5099d0a6e51b7f829d094
Time: 2016-03-10
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name: Tensor
Method Name: get


Project Name: andresriancho/w3af
Commit Name: 5285e34063b0e1444a1aa5215d8e95ffa41b01c0
Time: 2018-08-21
Author: apantykhin@gmail.com
File Name: w3af/plugins/output/html_file.py
Class Name: html_file
Method Name: flush


Project Name: inspirehep/magpie
Commit Name: 7b881943c322c1a98eaab359b3ee9b148c9c3268
Time: 2015-12-16
Author: jan.stypka@cern.ch
File Name: magpie/base/global_index.py
Class Name: GlobalFrequencyIndex
Method Name: _get_word_idf