aead7cf4711ce834a9a067c4bb6db11893c2a96b,tfdeploy.py,Operation,__init__,#Operation#,386
Before Change
self.last_uuid = None
// store attributes as kwargs for calls to eval
self.kwargs = [tf_op.get_attr(attr) for attr in (self.attrs or [])]
// store output dtypes for calls to eval when x is True
self.output_dtypes = [dtype_map[dtype] for dtype in tf_op._output_types]
After Change
// store attributes as kwargs for calls to eval
self.kwargs = []
for attr in self.attrs:
try:
value = tf_op.get_attr(attr)
except ValueError:
value = None
self.kwargs.append(value)
// store output dtypes for calls to eval when x is True
self.output_dtypes = [dtype_map[dtype] for dtype in tf_op._output_types]
@classmethod
def new(cls, tf_op, *args, **kwargs):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: riga/tfdeploy
Commit Name: aead7cf4711ce834a9a067c4bb6db11893c2a96b
Time: 2016-12-23
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name: Operation
Method Name: __init__
Project Name: neuropsychology/NeuroKit.py
Commit Name: cfd6bac15bae8a42cac9453baff3ef8022798e20
Time: 2017-08-28
Author: dom.mak19@gmail.com
File Name: neurokit/eeg/eeg_data.py
Class Name:
Method Name: eeg_to_all_evokeds
Project Name: nilmtk/nilmtk
Commit Name: 44672d4eba334ca97d32874d9aa03b02ce46d513
Time: 2014-12-10
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: load