MCPcopy Create free account
hub / github.com/pytorch/pytorch / assertStorageAreEqual

Function assertStorageAreEqual

torch/utils/model_dump/code.js:448–453  ·  view source on GitHub ↗
(key, lhs, rhs)

Source from the content-addressed store, hash-verified

446}
447
448function 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
455function computeTensorMemory(numel, dtype) {
456 const sizes = {

Callers 1

getTensorStoragesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…