b0728e31f312bc703ab227b6ff69f0a92b3dba07,open_seq2seq/utils/utils.py,,cast_types,#Any#Any#,359
Before Change
if value.dtype.base_dtype != dtype.base_dtype:
cast_input_dict[key] = tf.cast(value, dtype)
continue
if type(value) == dict:
cast_input_dict[key] = cast_types(input_dict[key], dtype)
continue
cast_input_dict[key] = input_dict[key]
return cast_input_dict
After Change
cur_list.append(tf.cast(nest_value, dtype))
continue
cur_list.append(nest_value)
cast_input_dict[key] = cur_list
continue
cast_input_dict[key] = input_dict[key]
return cast_input_dict
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: b0728e31f312bc703ab227b6ff69f0a92b3dba07
Time: 2018-05-17
Author: igor.a.gitman@gmail.com
File Name: open_seq2seq/utils/utils.py
Class Name:
Method Name: cast_types
Project Name: tryolabs/luminoth
Commit Name: 315a5c2839ab93812cde90f2c97f89b693481cf0
Time: 2017-10-05
Author: iangtayler@gmail.com
File Name: luminoth/utils/config.py
Class Name:
Method Name: merge_into
Project Name: GPflow/GPflow
Commit Name: d5c8585b59b649c5474d40f67a9105cd89bf626c
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: gpflow/ekernels.py
Class Name: Add
Method Name: Linear_RBF_eKxzKzx
Project Name: deepmipt/DeepPavlov
Commit Name: 1a6d4020c53e2b39e224616481528fad901cbd4e
Time: 2018-10-15
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/infer.py
Class Name:
Method Name: predict_on_stream