942c90ba7a7b9bccf6d9bce43808aba2bd6c9787,python/tvm/relay/op/dyn/image/_image.py,,resize_shape_func,#Any#Any#Any#,65

Before Change


    layout = attrs.layout
    if layout == "NHWC":
        out = [_NHWC_resize_shape_func(inputs[0].shape, inputs[1], convert(len(inputs[0].shape)))]
    elif (layout == "NCHW") or nchw_pack_layout(layout) or nchw_xc_layout(layout):
        out = [_NCHW_resize_shape_func(inputs[0].shape, inputs[1], convert(len(inputs[0].shape)))]
    else:
        raise ValueError("Resize Unsupported Layout", layout)
    return out

After Change


                                  convert(2), convert(3))]
    else:
        height_axis = width_axis = 1
        for i, letter in enumerate(layout):
            if letter == "H":
                height_axis = i
            if letter == "W":
                width_axis = i
        out = [_resize_shape_func(inputs[0].shape, inputs[1], convert(len(inputs[0].shape)),
                                  convert(height_axis), convert(width_axis))]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: apache/incubator-tvm
Commit Name: 942c90ba7a7b9bccf6d9bce43808aba2bd6c9787
Time: 2020-08-26
Author: lilyorthsmith@gmail.com
File Name: python/tvm/relay/op/dyn/image/_image.py
Class Name:
Method Name: resize_shape_func


Project Name: scipy/scipy
Commit Name: f30505b836141030f50cdd941f9cbc8f4cda0995
Time: 2016-02-29
Author: pav@iki.fi
File Name: scipy/sparse/linalg/isolve/lgmres.py
Class Name:
Method Name: lgmres


Project Name: prody/ProDy
Commit Name: a1e276c2cc69b8394245610ada060602a134570c
Time: 2018-03-15
Author: shz66@pitt.edu
File Name: prody/sequence/analysis.py
Class Name:
Method Name: showAlignment