5c5a490629aa20568434d1c6d11f4be4b8155518,tests/convert_gl2tf2_lstm.py,,gl_calc,#,22

Before Change


    ctx = mx.gpu(0)
    gl_params = gl_model._collect_params_with_prefix()
    // gl_w = np.transpose(tf2_w, axes=(3, 2, 0, 1))
    gl_params["conv.weight"]._load_init(mx.nd.array(gl_w, ctx), ctx)
    // gl_params["conv.bias"]._load_init(mx.nd.array(b, ctx), ctx)

    gl_x = mx.nd.array(x, ctx)

After Change


    // gl_y = gl_model(gl_x).asnumpy()

    ctx = mx.gpu(0)
    gl_x = mx.nd.zeros((3, 7, 80), ctx)
    gl_model.initialize(ctx=ctx)
    gl_model(gl_x)
    gl_params = gl_model._collect_params_with_prefix()
    _calc_width(gl_model)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: osmr/imgclsmob
Commit Name: 5c5a490629aa20568434d1c6d11f4be4b8155518
Time: 2021-02-02
Author: osemery@gmail.com
File Name: tests/convert_gl2tf2_lstm.py
Class Name:
Method Name: gl_calc


Project Name: utiasSTARS/liegroups
Commit Name: 784586f02d063d39360a287422a6384f30f10d12
Time: 2017-01-30
Author: clement.leopold@gmail.com
File Name: liegroups/so2.py
Class Name: SO2
Method Name: wedge


Project Name: taehoonlee/tensornets
Commit Name: c69da5ec32a1af288c70af7c37e08f6a8a19fe82
Time: 2018-03-31
Author: me@taehoonlee.com
File Name: tensornets/utils.py
Class Name:
Method Name: load_img