sxjscience commented on issue #17665: No speedup from using FP16 (4 times slower than PyTorch) URL: https://github.com/apache/incubator-mxnet/issues/17665#issuecomment-591832250 I can replicate the performance gap. Also, I added `mx.nd.waitall()` in the first script: ```python import mxnet as mx import numpy as np import time n = 2**14 ctx = mx.gpu(0) dtype = np.float16 with ctx: a = mx.nd.zeros((n, n), dtype=dtype) b = mx.nd.zeros((n, n), dtype=dtype) c = mx.nd.zeros((n, n), dtype=dtype) tic = time.time() for _ in range(100): mx.nd.dot(a, b, out=c) res = float(c[0, 0].asscalar()) # "use" the result print(time.time() - tic) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
