2ae5a7afa6939b8bfd739bc8900c5920702585e2,opt_einsum/contract.py,,contract_path,#,6

Before Change



    path_arg = kwargs.pop("path", "greedy")
    memory_limit = kwargs.pop("memory_limit", None)
    tensordot = kwargs.pop("tensordot", True)

    // Hidden option, only einsum should call this
    einsum_call_arg = kwargs.pop("einsum_call", False)

After Change



    // Make sure all keywords are valid
    valid_contract_kwargs = ["path", "memory_limit", "einsum_call"]
    unknown_kwargs = [k for (k, v) in kwargs.items() if k not in valid_contract_kwargs]
    if len(unknown_kwargs):
        raise TypeError("einsum_path: Did not understand the following kwargs: %s" % unknown_kwargs)

    path_type = kwargs.pop("path_type", "greedy")
    memory_limit = kwargs.pop("memory_limit", None)

    // Hidden option, only einsum should call this
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: dgasmith/opt_einsum
Commit Name: 2ae5a7afa6939b8bfd739bc8900c5920702585e2
Time: 2017-02-13
Author: malorian@me.com
File Name: opt_einsum/contract.py
Class Name:
Method Name: contract_path


Project Name: analysiscenter/batchflow
Commit Name: 8a84a02f44efb38c339c019ab097b00fab3701af
Time: 2019-09-03
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/tf/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: encoder


Project Name: analysiscenter/batchflow
Commit Name: 8a84a02f44efb38c339c019ab097b00fab3701af
Time: 2019-09-03
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/tf/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: decoder