def METHOD_NAME(target, dev):
    if layout == "NCW":
        fcompute, fschedule = tvm.topi.testing.dispatch(target, _conv1d_ncw_implement)
    else:
        fcompute, fschedule = tvm.topi.testing.dispatch(target, _conv1d_nwc_implement)
    with tvm.target.Target(target):
        B = fcompute(A, W, stride, padding, dilation, "float32")
        s = fschedule([B])
    a = tvm.nd.array(a_np, dev)
    w = tvm.nd.array(w_np, dev)
    b = tvm.nd.array(np.zeros(get_const_tuple(B.shape), dtype=dtype), dev)
    func = tvm.build(s, [A, W, B], target)
    func(a, w, b)
    tvm.testing.assert_allclose(b.numpy(), b_np, rtol=1e-5)