02ae456ef0e4eef86455b0a39d5ccabfd5b29668,tests/python/gpu/test_fusion.py,,check_fused_symbol,#Any#,29

Before Change


        data = {inp : kwargs[inp].astype(dtype) for inp in inputs}
        for grad_req in ["write", "add"]:
            type_dict = {inp : dtype for inp in inputs}
            os.environ["MXNET_USE_FUSION"] = "0"
            orig_exec = test_sym._simple_bind(ctx=ctx, grad_req=grad_req, type_dict=type_dict, **shapes)
            os.environ["MXNET_USE_FUSION"] = "1"
            fused_exec = test_sym._simple_bind(ctx=ctx, grad_req=grad_req, type_dict=type_dict, **shapes)
            fwd_orig = orig_exec.forward(is_train=True, **data)

After Change


            type_dict = {inp : dtype for inp in inputs}
            with environment("MXNET_USE_FUSION", "0"):
                orig_exec = test_sym._simple_bind(ctx=ctx, grad_req=grad_req, type_dict=type_dict, **shapes)
            with environment("MXNET_USE_FUSION", "1"):
                fused_exec = test_sym._simple_bind(ctx=ctx, grad_req=grad_req, type_dict=type_dict, **shapes)
            fwd_orig = orig_exec.forward(is_train=True, **data)
            out_grads = [mx.nd.ones_like(arr) for arr in fwd_orig]
            orig_exec.backward(out_grads=out_grads)
            fwd_fused = fused_exec.forward(is_train=True, **data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: apache/incubator-mxnet
Commit Name: 02ae456ef0e4eef86455b0a39d5ccabfd5b29668
Time: 2020-07-23
Author: dick.carter@comcast.net
File Name: tests/python/gpu/test_fusion.py
Class Name:
Method Name: check_fused_symbol


Project Name: apache/incubator-mxnet
Commit Name: 02ae456ef0e4eef86455b0a39d5ccabfd5b29668
Time: 2020-07-23
Author: dick.carter@comcast.net
File Name: tests/python/gpu/test_gluon_gpu.py
Class Name:
Method Name: test_gemms_true_fp16


Project Name: apache/incubator-mxnet
Commit Name: 02ae456ef0e4eef86455b0a39d5ccabfd5b29668
Time: 2020-07-23
Author: dick.carter@comcast.net
File Name: tests/python/gpu/test_operator_gpu.py
Class Name:
Method Name: kernel_error_check_imperative


Project Name: apache/incubator-mxnet
Commit Name: 02ae456ef0e4eef86455b0a39d5ccabfd5b29668
Time: 2020-07-23
Author: dick.carter@comcast.net
File Name: tests/python/gpu/test_operator_gpu.py
Class Name:
Method Name: kernel_error_check_symbolic