Skip to content

Commit 4732d4b

Browse files
authored
[Fix] Fix TVM detach bug in embedding pipeline (#731)
1 parent 3c60cdb commit 4732d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/embedding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class EmbeddingPipeline {
4949
// 2. Get json stored in the vm's metadata function
5050
const fgetMetadata = this.vm.getFunction("_metadata");
5151
const ret_value = fgetMetadata();
52-
const metadataStr = this.tvm.detachFromCurrentScope(ret_value).toString();
52+
const metadataStr = ret_value.toString();
5353
const metadata = JSON.parse(metadataStr);
5454

5555
// 3. Load parameters by name

0 commit comments

Comments
 (0)