be119b0bb043be437f9619c26cf0f9878a6a9090,GPflow/misc.py,,get_tensor_by_name,#Any#Any#Any#,38

Before Change


        if index is not None:
            return graph.get_tensor_by_name(":".join([name, index]))
        return graph.get_tensor_by_name(name)
    except ValueError:
        return None

After Change


    tensor = _get_tensor_by_name(name, "0", graph)
    if tensor is None:
        return tensor
    if _get_tensor_by_name(name, "1", graph) is not None:
        raise ValueError("Ambiguous tensor for "{0}" with multiple indices found."
                         .format(name))
    return tensor


def is_ndarray(value):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GPflow/GPflow
Commit Name: be119b0bb043be437f9619c26cf0f9878a6a9090
Time: 2017-09-14
Author: art.art.v@gmail.com
File Name: GPflow/misc.py
Class Name:
Method Name: get_tensor_by_name


Project Name: GPflow/GPflow
Commit Name: a1a3a6a27e236464460d07fa7e0c4b605d094717
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: GPflow/_settings.py
Class Name:
Method Name: parse


Project Name: google/deepvariant
Commit Name: e9e47a5f7f8833a57620d9901515864adc69ec2d
Time: 2019-10-24
Author: pichuan@google.com
File Name: deepvariant/make_examples.py
Class Name: RegionProcessor
Method Name: region_reads