Remove unnecessary resource cleanup in TransformersEmbeddingModel

This commit is contained in:
Christian Tzolov
2024-10-08 14:38:47 +02:00
parent 3367ebd897
commit 2cd85a0781

View File

@@ -340,17 +340,6 @@ public class TransformersEmbeddingModel extends AbstractEmbeddingModel implement
}
}
}
finally {
if (!inputIds.isClosed()) {
inputIds.close();
}
if (!attentionMask.isClosed()) {
attentionMask.close();
}
if (!tokenTypeIds.isClosed()) {
tokenTypeIds.close();
}
}
}
}
catch (OrtException ex) {