1e84cededb34347e5fd3a169b824020606f36d6c,tensorflow_datasets/core/dataset_utils.py,,dataset_as_numpy,#Any#Any#,108

Before Change


    // Graph mode

    // First create necessary graph ops
    ds_iters = [None] * len(flat_ds)
    with utils.maybe_with_graph(graph, create_if_none=False):
      for i, ds_el in enumerate(flat_ds):
        if isinstance(ds_el, tf.data.Dataset):
          ds_iters[i] = tf.compat.v1.data.make_one_shot_iterator(

After Change


      ])

    // Merge the datasets iterators and np array
    iter_ds = iter(ds_iters)
    iter_array = iter(np_arrays)
    flat_np = [
        next(iter_ds) if _is_ds(ds_el) else next(iter_array)
        for ds_el in flat_ds
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/datasets
Commit Name: 1e84cededb34347e5fd3a169b824020606f36d6c
Time: 2019-01-28
Author: epot@google.com
File Name: tensorflow_datasets/core/dataset_utils.py
Class Name:
Method Name: dataset_as_numpy


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 18a9b3a5beb96dc00973710a1df1dd6a6394854e
Time: 2019-06-14
Author: jonas.rothfuss@gmx.de
File Name: cde/model_fitting/GoodnessOfFitResults.py
Class Name: GoodnessOfFitResults
Method Name: plot_metric


Project Name: pyinstaller/pyinstaller
Commit Name: 250b8724f39511dc1cd74e8d910c3c2ed0e466f9
Time: 2015-10-25
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/utils.py
Class Name:
Method Name: __recursivly_scan_code_objects_for_ctypes