0fd13ccd7e61c9186127993080240c07b7ad905e,docs/tutorials/action_recognition/dive_deep_ucf101.py,,,#,63

Before Change



        // AutoGrad
        with ag.record():
            output = [net(X) for X in data]
            loss = [loss_fn(yhat, y) for yhat, y in zip(output, label)]

        // Backpropagation

After Change


            output = []
            for _, X in enumerate(data):
                X = X.reshape((-1,) + X.shape[2:])
                pred = net(X)
                output.append(pred)
            loss = [loss_fn(yhat, y) for yhat, y in zip(output, label)]

        // Backpropagation
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: dmlc/gluon-cv
Commit Name: 0fd13ccd7e61c9186127993080240c07b7ad905e
Time: 2019-10-28
Author: yizhu59@gmail.com
File Name: docs/tutorials/action_recognition/dive_deep_ucf101.py
Class Name:
Method Name:


Project Name: deepmind/sonnet
Commit Name: 4c62b40b3d3c99298e663dff6aed53974a386d3f
Time: 2017-08-14
Author: tfgg@google.com
File Name: sonnet/python/modules/nets/alexnet_test.py
Class Name: AlexNetTest
Method Name: testModes


Project Name: d2l-ai/d2l-zh
Commit Name: cab512c5f1e12d3c3138b9b83e29bf53c3e5e6db
Time: 2018-05-12
Author: asv325@gmail.com
File Name: utils.py
Class Name:
Method Name: optimize


Project Name: d2l-ai/d2l-zh
Commit Name: 7c4dce4bcbaf81f4ab50321431f9362b31239cf7
Time: 2018-05-14
Author: asv325@gmail.com
File Name: gluonbook/utils.py
Class Name:
Method Name: optimize