Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/huggingface/transformers.js
/ dispose
Method
dispose
packages/transformers/src/utils/tensor.js:112–115 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
110
}
111
112
dispose() {
113
this.ort_tensor.dispose();
114
// this.ort_tensor = undefined;
115
}
116
117
/**
118
* Returns an iterator object
for
iterating over the tensor data in row-major order.
Callers
15
dev.mjs
File · 0.45
collectEvents
Function · 0.45
progress_callbacks.test.js
File · 0.45
models.test.js
File · 0.45
logits_process.test.js
File · 0.45
generation.test.js
File · 0.45
custom_cache.test.js
File · 0.45
test_pipelines_token_classification.js
File · 0.45
test_pipelines_text_to_audio.js
File · 0.45
test_pipelines_zero_shot.js
File · 0.45
test_pipelines_translation.js
File · 0.45
test_pipelines_text_generation.js
File · 0.45
Calls
no outgoing calls
Tested by
1
collectEvents
Function · 0.36