Closed botcs closed 1 week ago
I am not sure if warmup needed for these experiments
@botcs TensorFlow.js uses the WebGL backend for faster computations. Please ensure WebGL is enabled and utilized. For any further queries please raise a ticket in TFJS repository. Thank you!
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.
Issue type
Performance
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tfjs
Custom code
No
OS platform and distribution
No response
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I was just shocked when I saw that even basic operations like passing an array to
tf.tensor
is 60% slower than allocating atf.buffer
, setting each value one by one and callingtoTensor()
. When it comes totf.randomNormal
, which I believe is called many many times, there is a major slow down, even though the same Box-Muller algorithm is used.Standalone code to reproduce the issue
Relevant log output