20ea228773616f824fa5099d0a6e51b7f829d094,tfdeploy.py,Model,get,#Model#,72

Before Change


        Returns a tensor given by *name* using a deep lookup within the model. *None* is returned
        when no tensor was found. In case a tensor is passed, it"s name is used for the lookup.
        
        if isinstance(name, Tensor):
            name = name.name

        // append the default value_index if there"s none
        if not self.value_index_cre.search(name):
            name += ":%d" % self.default_value_index

        // return the first occurance of a tensor with that name

After Change


        returned when no tensor was found. In case a tensor is passed, it"s name is used for the
        lookup.
        
        tensors = tuple(self._get(name) for name in names)
        return tensors[0] if len(names) == 1 else tensors

    def _get(self, name):
        if isinstance(name, Tensor):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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: explosion/thinc
Commit Name: fc56073588771c81b4e134bff54195f5e74e6b43
Time: 2020-01-21
Author: ines@ines.io
File Name: thinc/backends/ops.py
Class Name: Ops
Method Name: minibatch


Project Name: explosion/thinc
Commit Name: fc56073588771c81b4e134bff54195f5e74e6b43
Time: 2020-01-21
Author: ines@ines.io
File Name: thinc/backends/ops.py
Class Name: Ops
Method Name: multibatch