daf8b438b0cc1819f234db6fb85465c6e0896f16,example/extensions/lib_pass/test_pass.py,,test_model,#Any#,50

Before Change


    aux = {}
    mysym2 = sym.optimize_for(pass_name,args,aux)
    print(mysym2.tojson())
    exe2 = mysym2.bind(ctx=mx.cpu(), args=args)
    out2 = exe2.forward()
    print(out2)

    // without propogating shapes/types
    print("-------------------------------")
    print("Testing pass "%s" without shapes/types" % pass_name)
    mysym3 = sym.optimize_for(pass_name, myOpt="yello")
    exe3 = mysym3.bind(ctx=mx.cpu(), args=args)
    out3 = exe3.forward()
    print(out3)

    // Gluon Hybridize
    print("-------------------------------")

After Change


    // execute in MXNet
    print("-------------------------------")
    print("Testing regular MXNet execution")
    inputs = [a,b]
    sym_block = nn.SymbolBlock(sym, inputs)
    sym_block.initialize()
    out = sym_block(mx.nd.ones((3,2)),mx.nd.ones((3,2)))
    print(out)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: apache/incubator-mxnet
Commit Name: daf8b438b0cc1819f234db6fb85465c6e0896f16
Time: 2020-08-14
Author: samskalicky@gmail.com
File Name: example/extensions/lib_pass/test_pass.py
Class Name:
Method Name: test_model


Project Name: apache/incubator-mxnet
Commit Name: 83797400128d41910d87e957131f29fd466f4777
Time: 2020-09-01
Author: samskalicky@gmail.com
File Name: example/extensions/lib_custom_op/test_transposerowsp.py
Class Name:
Method Name:


Project Name: apache/incubator-mxnet
Commit Name: 83797400128d41910d87e957131f29fd466f4777
Time: 2020-09-01
Author: samskalicky@gmail.com
File Name: example/extensions/lib_custom_op/test_transposecsr.py
Class Name:
Method Name:


Project Name: apache/incubator-mxnet
Commit Name: daf8b438b0cc1819f234db6fb85465c6e0896f16
Time: 2020-08-14
Author: samskalicky@gmail.com
File Name: example/extensions/lib_pass/test_pass.py
Class Name:
Method Name: test_model