9e7f77ef319e54bfeb69635671b719100dbaf36e,niftynet/io/image_reader.py,,infer_tf_dtypes,#Any#,20

Before Change




def infer_tf_dtypes(image_object):
    uniq_np_dtype = set(image_object.dtype)
    if len(uniq_np_dtype) > 1:
        // heterogeneous input data types, promoting to floatings
        return NP_TF_DTYPES.get("f", None)
    else:

After Change




def infer_tf_dtypes(image_array):
    return NP_TF_DTYPES.get(image_array.dtype.kind, tf.float32)


class ImageReader(Layer):
    def __init__(self, output_fields):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 9e7f77ef319e54bfeb69635671b719100dbaf36e
Time: 2017-08-07
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name:
Method Name: infer_tf_dtypes


Project Name: ray-project/ray
Commit Name: ff6d412ad9251284645bc8cbd5fb786b107e0782
Time: 2020-10-02
Author: maxfitton@anyscale.com
File Name: dashboard/datacenter.py
Class Name: DataOrganizer
Method Name: get_node_actors


Project Name: ray-project/ray
Commit Name: 1e39c403709b96d0bfa9c139e927441acc232426
Time: 2020-09-27
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_placement_group.py
Class Name:
Method Name: test_capture_child_tasks


Project Name: allenai/allennlp
Commit Name: 87c23e4a7e25d81e91ba8234eef38b5395993c51
Time: 2020-06-12
Author: epwalsh10@gmail.com
File Name: allennlp/training/util.py
Class Name:
Method Name: make_vocab_from_params