20ea228773616f824fa5099d0a6e51b7f829d094,tfdeploy.py,Operation,get,#Operation#,303

Before Change


        Returns a tensor given by *name* using a deep lookup within this op. *None* is returned when
        no tensor was found.
        
        return reduce(lambda t1,t2: t1 or t2.get(name), self.inputs, None)

    def eval(self, feed_dict, _uuid):
         eval(feed_dict=None)
        Returns the value of the output tensor. See :py:meth:`Tensor.eval` for more info.

After Change


        Returns one or more tensors given by *names* using a deep lookup within this op. *None* is
        returned when no 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):
        return reduce(lambda t1,t2: t1 or t2.get(name), self.inputs, None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


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


Project Name: MycroftAI/padatious
Commit Name: 9db56d70bdf8205143b833e6fd72502e8cb619da
Time: 2017-10-02
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts