75e78022d2df350ea220cee1b5e759ef9fc35a5b,test/test_gpu.py,,test_gpu_sinkhorn,#,20
Before Change
time3 = time.time()
print("Normal sinkhorn, time: {:6.2f} sec ".format(time2 - time1))
describe_res(G1)
print(" GPU sinkhorn, time: {:6.2f} sec ".format(time3 - time2))
describe_res(G2)
np.testing.assert_allclose(G1, G2, rtol=1e-5, atol=1e-5)
After Change
wb = ot.unif(n_samples)
M = ot.dist(a.copy(), b.copy())
M2 = ot.gpu.dist(a.copy(), b.copy(), to_numpy=False)
reg = 1
G = ot.sinkhorn(wa, wb, M, reg)
G1 = ot.gpu.sinkhorn(wa, wb, M, reg)
np.testing.assert_allclose(G1, G, rtol=1e-10)
G2 = ot.gpu.sinkhorn(wa, wb, M2, reg, to_numpy=False)
@pytest.mark.skipif(nogpu, reason="No GPU available")
def test_gpu_sinkhorn_lpl1():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: rflamary/POT
Commit Name: 75e78022d2df350ea220cee1b5e759ef9fc35a5b
Time: 2018-09-24
Author: remi.flamary@gmail.com
File Name: test/test_gpu.py
Class Name:
Method Name: test_gpu_sinkhorn
Project Name: HyperGAN/HyperGAN
Commit Name: 7a65d9993bdda4a5248f6aa313abf687faa031a6
Time: 2020-06-27
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_concat
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 5c47aded190bb9ebc1b07b3fe61f5c343c77841a
Time: 2017-05-23
Author: jessicatemporal@gmail.com
File Name: develop/2017-05-19-jtemporal-cities-population-study.py
Class Name:
Method Name:
Project Name: rflamary/POT
Commit Name: 75e78022d2df350ea220cee1b5e759ef9fc35a5b
Time: 2018-09-24
Author: remi.flamary@gmail.com
File Name: test/test_gpu.py
Class Name:
Method Name: test_gpu_sinkhorn_lpl1