def METHOD_NAME(device):
    pipe = ConstantPipeline(device)
    pipe.build()
    for iter in range(3):
        out = pipe.run()
        if device == "gpu":
            out = [o.as_cpu() for o in out]
        for o in range(len(ref)):
            for i in range(len(out[o])):
                check(out[o].at(i), ref[o])