7d90bd15cf2112db4881429c909aa6104749b870,examples/tensorflow_mnist_estimator.py,,main,#Any#,129

Before Change


    // Load training and eval data
    mnist = learn.datasets.mnist.read_data_sets("MNIST-data-%d" % hvd.rank())
    train_data = mnist.train.images  // Returns np.array
    train_labels = np.asarray(mnist.train.labels, dtype=np.int32)
    eval_data = mnist.test.images  // Returns np.array
    eval_labels = np.asarray(mnist.test.labels, dtype=np.int32)

    // Horovod: pin GPU to be used to process local rank (one GPU per process)

After Change

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: horovod/horovod
Commit Name: 7d90bd15cf2112db4881429c909aa6104749b870
Time: 2018-12-10
Author: fardin.abdi@gmail.com
File Name: examples/tensorflow_mnist_estimator.py
Class Name:
Method Name: main


Project Name: pandas-dev/pandas
Commit Name: 191f859673b755237a99d24f8f4bed4b738870dc
Time: 2020-11-12
Author: jbrockmendel@gmail.com
File Name: pandas/core/indexes/category.py
Class Name: CategoricalIndex
Method Name: _convert_list_indexer


Project Name: UFAL-DSG/tgen
Commit Name: 695eaf421c7ac5d3f52136358b8c0c9794582a07
Time: 2015-04-09
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank_mlp.py
Class Name: FeedForwardLayer
Method Name: __init__