0209a849ef4d520367c2fa880e5605d03106d22d,python/test_scripts/gen_fc.py,,gen_test,#,6

Before Change


    w = tf.constant(tf.random.uniform([512,256])).numpy()
    b = tf.constant(tf.random.uniform([512,1])).numpy()
    // Combine ops to behave like final kernel
    out_1 = tf.math.add(tf.linalg.matmul(w, tf.reshape(in1, (-1,1))), b).numpy()

    in_ref_name = "s_ref_in_%d" % test_number
    w_ref_name = "s_ref_w_%d" % test_number

After Change


    in0 = tf.constant(tf.random.uniform([1,2,2,64])).numpy()
    w = tf.constant(tf.random.uniform([512,256])).numpy()
    if test_number == 0:
        b = np.zeros([1,512], dtype=np.float32).flatten()
    else:
        b = tf.constant(tf.random.uniform([1,512])).numpy().flatten()
    // Combine ops to behave like final kernel
    in1 = tf.reshape(in0, (1,-1)).numpy()
    m = tf.linalg.matmul(in1, w, transpose_b=True)
    print(m.shape)
    out_1 = tf.math.add(m, b).numpy()
    w = np.transpose(w)

    in_ref_name = "s_ref_in_%d" % test_number
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: uTensor/uTensor
Commit Name: 0209a849ef4d520367c2fa880e5605d03106d22d
Time: 2020-06-16
Author: michael.bartling15@gmail.com
File Name: python/test_scripts/gen_fc.py
Class Name:
Method Name: gen_test


Project Name: philipperemy/keras-tcn
Commit Name: ad8e98817f58c721f7173e188281ccec251ef7a8
Time: 2020-01-06
Author: premy.enseirb@gmail.com
File Name: tcn/tcn.py
Class Name: TCN
Method Name: call


Project Name: mapbox/robosat
Commit Name: 9a8d91022cfde0a380d8700be76d6ddbd716a2af
Time: 2018-09-12
Author: o@courtin.co
File Name: robosat/tools/train.py
Class Name:
Method Name: validate


Project Name: riga/tfdeploy
Commit Name: ddbcf295c72c5cec7b12d200ff2ca81bcc875d23
Time: 2016-03-13
Author: marcelrieger@me.com
File Name: tests/core.py
Class Name: CoreTestCase
Method Name: __init__


Project Name: mapbox/robosat
Commit Name: 9a8d91022cfde0a380d8700be76d6ddbd716a2af
Time: 2018-09-12
Author: o@courtin.co
File Name: robosat/tools/train.py
Class Name:
Method Name: train


Project Name: joeddav/devol
Commit Name: 139f58d10a5045f304af6eab56405de104a0178a
Time: 2017-05-26
Author: josephddavison@gmail.com
File Name: genome_handler.py
Class Name: GenomeHandler
Method Name: decode