yiv1
yiv1
same problem in Bun ``` 2025-06-26 03:02:12.840574: W tensorflow/core/framework/op_kernel.cc:1840] OP_REQUIRES failed at cwise_ops_common.h:124 : RESOURCE_EXHAUSTED: OOM when allocating tensor with shape[32,16] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator mklcpu ============================================================...
Using SharedArrayBuffer to exchange data between modules written in node-addon-api and node.js will greatly simplify life. The current implementation of my module looks like a monster. I need this feature....
Sometime, in real sample i got this ``` ┌────┬────────────┬───────────┬───────────┬───────────┬──────────────┐ │ │ rss │ heapTotal │ heapUsed │ external │ arrayBuffers │ ├────┼────────────┼───────────┼───────────┼───────────┼──────────────┤ │ 59 │ 1055535104 │ 185823232 │ 130950109...
I wouldn't rule out the possibility that the problem could be in the binding module itself. interestingly, the tensorflow core written in c++ is used in python, right? but over...
```js // import tf from '@tensorflow/tfjs-node'; import tf from '@tensorflow/tfjs'; const width = 150; const height = 10; console.time('total time'); for (let i = 0; i < 5_000_000; i++) {...
```js import tf from '@tensorflow/tfjs'; import '@tensorflow/tfjs-backend-wasm'; await tf.setBackend('wasm'); const width = 150; const height = 10; console.time('total time'); for (let i = 0; i < 5_000_000; i++) { tf.tidy(()...
More experiments led me to the `reshape` function. It may be the cause of the memory leaks.
It seems incredible, but I observe memory leak problems when initializing tensors with shape ```js tf.tensor4d(new Float32Array([1, 2, 3, ..., N]), [1, H, W, C]) ``` Why does this surprise...