(key, lhs, rhs)
| 446 | } |
| 447 | |
| 448 | function assertStorageAreEqual(key, lhs, rhs) { |
| 449 | if (lhs.length !== rhs.length || |
| 450 | !lhs.every((val, idx) => val === rhs[idx])) { |
| 451 | throw new Error("Storage mismatch for key '" + key + "'"); |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | function computeTensorMemory(numel, dtype) { |
| 456 | const sizes = { |
no outgoing calls
no test coverage detected
searching dependent graphs…