d3e50a9377058fb1e6d7be15f9c00bd6f3173e33,examples/mnist_mlp.py,,main,#Any#Any#Any#,13

Before Change




def main(depth=2, width=512, nb_epoch=30):
    if CupyOps.xp != None:
        Model.ops = CupyOps()
        Model.Ops = CupyOps
    // Configuration here isn"t especially good. But, for demo..
    with Model.define_operators({"**": clone, ">>": chain}):
        model = ReLu(width) >> ReLu(width) >> Softmax()

    train_data, dev_data, _ = datasets.mnist()

After Change




def main(depth=2, width=512, nb_epoch=30):
    prefer_gpu()
    // Configuration here isn"t especially good. But, for demo..
    with Model.define_operators({"**": clone, ">>": chain}):
        model = ReLu(width) >> ReLu(width) >> Softmax()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: explosion/thinc
Commit Name: d3e50a9377058fb1e6d7be15f9c00bd6f3173e33
Time: 2018-09-11
Author: honnibal@gmail.com
File Name: examples/mnist_mlp.py
Class Name:
Method Name: main


Project Name: explosion/thinc
Commit Name: e4ae2c6e5c4cf6f3b02fb592d03c1caaddcfcd99
Time: 2018-09-11
Author: honnibal@gmail.com
File Name: examples/pytorch_lstm_tagger.py
Class Name:
Method Name: main


Project Name: explosion/thinc
Commit Name: 846e91d6a759f092119bdd11a44fc6f2219c8029
Time: 2018-09-11
Author: honnibal@gmail.com
File Name: examples/mnist_mlp.py
Class Name:
Method Name: main


Project Name: explosion/thinc
Commit Name: 15cfb7167caa47e908c277ea495011d6e6bb3c51
Time: 2018-09-11
Author: honnibal@gmail.com
File Name: examples/pytorch_lstm_tagger.py
Class Name:
Method Name: main