c76ee0c9d019038c696266f8017a1069e1be0840,onnx_tf/handlers/backend_handler.py,BackendHandler,_run_tf_func,#Any#Any#Any#Any#,160
Before Change
attrs = cls._process_attrs(attrs)
return tf_func(*inputs,
**dict([(p, attrs[p]) for p in params if p in attrs]))
After Change
params = inspect.getargspec(tf_func).args
attrs = cls._process_attrs(attrs)
attrs = {p: v for p, v in attrs.items() if p in params}
kwargs = dict(zip(params, inputs))
ambiguous_arguments = any(kwargs.get(p) is not None and v is not None
for p, v in attrs.items())
if ambiguous_arguments:
raise TypeError("Ambiguous arguments for {}()".format(tf_func.__name__))
kwargs.update((p, v) for p, v in attrs.items() if v is not None)
return tf_func(**kwargs)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: onnx/onnx-tensorflow
Commit Name: c76ee0c9d019038c696266f8017a1069e1be0840
Time: 2020-06-17
Author: bbugaev@users.noreply.github.com
File Name: onnx_tf/handlers/backend_handler.py
Class Name: BackendHandler
Method Name: _run_tf_func
Project Name: reinforceio/tensorforce
Commit Name: 67f74e592427d15578eae688f677952d8bd98d3a
Time: 2020-04-25
Author: alexkuhnle@t-online.de
File Name: tensorforce/agents/dueling_dqn.py
Class Name: DuelingDQN
Method Name: __init__
Project Name: quantumlib/Cirq
Commit Name: 010580845043ef751687b0ab34f694939a2fa4f5
Time: 2020-09-17
Author: kevinjefferysung@gmail.com
File Name: cirq/study/sweepable.py
Class Name:
Method Name: to_sweeps
Project Name: theislab/scanpy
Commit Name: e894183632d6abb49a645b9e3c13262b883327e7
Time: 2020-02-14
Author: giov.pll@gmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: read_visium